LearnNewsExamplesServices
Frontmatter
id7576
titleFix and Verify GitHub API Field Names in SyncService
stateClosed
labels
bugai
assigneestobiu
createdAtOct 20, 2025, 3:21 PM
updatedAtOct 20, 2025, 4:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/7576
authortobiu
commentsCount1
parentIssue7564
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 20, 2025, 4:03 PM

Fix and Verify GitHub API Field Names in SyncService

Closed v11.0.0 bugai
tobiu
tobiu commented on Oct 20, 2025, 3:21 PM

A code review has highlighted a critical potential bug: a mismatch between the JSON fields requested from the gh CLI (which often use camelCase like createdAt) and the fields it actually returns (which may use snake_case like created_at). This ticket covers verifying the correct field names and standardizing their usage throughout the SyncService to prevent runtime errors.

Acceptance Criteria

  1. The actual JSON output of gh issue view <N> --json createdAt,created_at,author,user and gh release view <T> --json publishedAt,published_at is inspected to definitively identify the correct field names returned by the API.
  2. All gh CLI calls in SyncService.mjs are updated to request the correct, verified field names.
  3. All property accessors within the service's logic (e.g., issue.createdAt vs. issue.created_at) are updated to match the verified API response, ensuring consistency.
  4. A new unit or integration test is created to validate the field name mappings for a sample issue and release payload, preventing future regressions.
tobiu assigned to @tobiu on Oct 20, 2025, 3:21 PM
tobiu added parent issue #7564 on Oct 20, 2025, 3:21 PM
tobiu added the bug label on Oct 20, 2025, 3:21 PM
tobiu added the ai label on Oct 20, 2025, 3:21 PM
tobiu
tobiu Oct 20, 2025, 4:03 PM

verified field names, no changes needed.

tobiu closed this issue on Oct 20, 2025, 4:03 PM