LearnNewsExamplesServices
Frontmatter
id7651
titleFix: `IssueSyncer` fails to find releases after `ReleaseSyncer` refactoring
stateClosed
labels
bugai
assigneestobiu
createdAtOct 25, 2025, 7:47 PM
updatedAtOct 25, 2025, 7:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/7651
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 25, 2025, 7:49 PM

Fix: IssueSyncer fails to find releases after ReleaseSyncer refactoring

Closed v11.0.0 bugai
tobiu
tobiu commented on Oct 25, 2025, 7:47 PM

This ticket reports and resolves a bug introduced during the refactoring of ReleaseSyncer.mjs where ReleaseSyncer.releases was changed from an array to an object.

Problem: After ReleaseSyncer.releases was refactored from an array to an object, the IssueSyncer.#getIssuePath method, which relies on ReleaseSyncer.releases.find(), started failing with the error: ReleaseSyncer.releases.find is not a function. This prevented the sync_all tool from correctly processing and archiving closed issues.

Root Cause: The IssueSyncer.#getIssuePath method was attempting to use the find() array method directly on ReleaseSyncer.releases, which is no longer an array but an object.

Solution: The IssueSyncer.#getIssuePath method has been updated to correctly access the values of the ReleaseSyncer.releases object before attempting to use the find() method.

Changes Implemented: The following line in ai/mcp/server/github-workflow/services/sync/IssueSyncer.mjs was changed:

// Old:
const release = ReleaseSyncer.releases.find(r => new Date(r.publishedAt) > closed);

// New:
const release = Object.values(ReleaseSyncer.releases).find(r => new Date(r.publishedAt) > closed);

This ensures that the find() method is called on an array of release objects, resolving the error.

tobiu added the bug label on Oct 25, 2025, 7:47 PM
tobiu added the ai label on Oct 25, 2025, 7:47 PM
tobiu assigned to @tobiu on Oct 25, 2025, 7:47 PM
tobiu referenced in commit 5586f8a - "Fix: IssueSyncer fails to find releases after ReleaseSyncer refactoring #7651" on Oct 25, 2025, 7:48 PM
tobiu closed this issue on Oct 25, 2025, 7:49 PM