Skip to content

fix(lint): reorder availability exports for Biome organize-imports - #1420

Closed
github-actions[bot] wants to merge 1 commit into
devfrom
claude-fix-pr-1402-31575621360
Closed

fix(lint): reorder availability exports for Biome organize-imports#1420
github-actions[bot] wants to merge 1 commit into
devfrom
claude-fix-pr-1402-31575621360

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

CI Auto-Fix

Original PR: #1402
Failed CI Run: Non-Main Branch CI/CD

Root Cause

The dev-build-deploy job failed at the bun run lint step with a single Biome error:

src/lib/availability/index.ts:17:1 assist/source/organizeImports  FIXABLE
  x Sort the exported names.

CURRENT_PROVIDER_STATUS_WINDOW_MINUTES was listed after lowercase identifiers, violating Biome's export sorting rule (uppercase sorts before lowercase by code point).

Fixes Applied

File Fix Type
src/lib/availability/index.ts Moved CURRENT_PROVIDER_STATUS_WINDOW_MINUTES before calculateAvailabilityScore/classifyRequestStatus lint: organize-imports
src/lib/availability/availability-service.ts Line wrapping in floorToUtcMinute (auto-applied by biome format --write) format
tests/unit/lib/availability/projection-worker.test.ts Line wrapping in transactionMock calls (auto-applied by biome format --write) format

All changes are purely mechanical (reordering and whitespace). No logic changes.

Verification

  • bun run typecheck passes
  • bun run format + bun run lint passes (0 errors; only the pre-existing biome schema-version info notice remains, which does not fail CI)
  • No logic changes made

Auto-generated by Claude AI

Greptile Summary

This PR applies mechanical formatting changes to satisfy Biome without changing runtime behavior.

  • Reorders availability-service exports into the required order.
  • Reformats floorToUtcMinute and projection-worker test expressions.

Confidence Score: 5/5

The PR appears safe to merge because all changes are behavior-preserving formatting or export reordering.

The exported symbols, function arguments, callback behavior, and test assertions remain unchanged, and no actionable defect was identified.

Important Files Changed

Filename Overview
src/lib/availability/availability-service.ts Reformats the existing Date.UTC expression without changing its arguments or behavior.
src/lib/availability/index.ts Reorders one named re-export while preserving the module’s public API.
tests/unit/lib/availability/projection-worker.test.ts Reformats callback and assertion expressions without changing test behavior.

Reviews (1): Last reviewed commit: "fix(lint): reorder availability exports ..." | Re-trigger Greptile

Fixed:
- src/lib/availability/index.ts: reordered export names so CURRENT_PROVIDER_STATUS_WINDOW_MINUTES sorts before lowercase identifiers (the actual CI failure)
- src/lib/availability/availability-service.ts: biome format auto-fix (line wrapping)
- tests/unit/lib/availability/projection-worker.test.ts: biome format auto-fix (line wrapping)

CI Run: https://github.com/ding113/claude-code-hub/actions/runs/31575621360

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant