Skip to content

🤖 Auto-fix CI failures for PR #282#283

Closed
github-actions[bot] wants to merge 1 commit intofeat/me-usagefrom
claude-fix-pr-282-19989301866
Closed

🤖 Auto-fix CI failures for PR #282#283
github-actions[bot] wants to merge 1 commit intofeat/me-usagefrom
claude-fix-pr-282-19989301866

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 6, 2025

Auto-fix CI Failures

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

Problem

The build failed with a TypeScript error:

Type error: Object literal may only specify known properties, and 'startDateLocal' does not exist in type 'UsageLogFilters'.

Root Cause

In src/actions/my-usage.ts:308-309, the code was using non-existent properties startDateLocal and endDateLocal in the UsageLogFilters object.

The UsageLogFilters interface (defined in src/repository/usage-logs.ts) expects:

  • startTime?: number - millisecond timestamp for start date
  • endTime?: number - millisecond timestamp for end date

Fixes Applied

  • ✅ Changed startDateLocal to startTime with proper date string to timestamp conversion
  • ✅ Changed endDateLocal to endTime with proper date string to timestamp conversion
  • ✅ Fixed invalid time format from T24:00 to T23:59:59.999 for end of day
  • ✅ Used new Date().getTime() to convert date strings to millisecond timestamps

Changes

// Before (incorrect)
startDateLocal: filters.startDate ? `${filters.startDate}T00:00` : undefined,
endDateLocal: filters.endDate ? `${filters.endDate}T24:00` : undefined,

// After (correct)
startTime: filters.startDate ? new Date(`${filters.startDate}T00:00`).getTime() : undefined,
endTime: filters.endDate ? new Date(`${filters.endDate}T23:59:59.999`).getTime() : undefined,

This aligns with how the findUsageLogsWithDetails function expects to receive time filters as millisecond timestamps.


🤖 Auto-generated by Claude AI

…startDateLocal/endDateLocal

- Fixed TypeScript error in my-usage.ts where incorrect filter properties were used
- Changed from non-existent startDateLocal/endDateLocal to startTime/endTime
- Convert date strings to millisecond timestamps as expected by UsageLogFilters interface
- Use T23:59:59.999 for end time instead of invalid T24:00

This fixes the build error:
Type error: Object literal may only specify known properties, and 'startDateLocal' does not exist in type 'UsageLogFilters'.
@ding113 ding113 closed this Dec 6, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Claude Code Hub Roadmap Dec 6, 2025
@ding113 ding113 deleted the claude-fix-pr-282-19989301866 branch December 11, 2025 10:35
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