LearnNewsExamplesServices
Frontmatter
id7732
titlebug: sync_all does not move existing local issues to archive on new release
stateClosed
labels
bugai
assigneestobiu
createdAtNov 9, 2025, 11:31 AM
updatedAtNov 9, 2025, 2:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/7732
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 9, 2025, 2:49 PM

bug: sync_all does not move existing local issues to archive on new release

Closed v11.0.1 bugai
tobiu
tobiu commented on Nov 9, 2025, 11:31 AM

Summary

The sync_all tool fails to move existing local issues from the .github/ISSUE/ directory to the appropriate release archive folder when a new release is synced.

Steps to Reproduce

  1. Have a closed issue with a milestone (e.g., v11.0.0) that already exists as a local file in .github/ISSUE/.
  2. Publish the corresponding release (v11.0.0) on GitHub.
  3. Run the sync_all tool.

Expected Behavior

The local issue file is moved from .github/ISSUE/ to .github/ISSUE_ARCHIVE/11.0.0/. The local metadata in .github/.sync-metadata.json is updated with the new file path.

Actual Behavior

The local issue file is not moved. The sync logic appears to skip re-evaluating the location of local files if their content hash has not changed, even though its milestone now dictates it should be archived.

Technical Analysis

The bug is likely within the IssueSyncer service. The current logic prioritizes content hash checking over location validation. The logic needs to be refactored to ensure that for every issue pulled from GitHub, its correct local path (active vs. archived) is determined based on its milestone, and the local file is moved if its current path does not match the expected path. This location check must happen independently of the content sync check.

tobiu added the bug label on Nov 9, 2025, 11:32 AM
tobiu added the ai label on Nov 9, 2025, 11:32 AM
tobiu assigned to @tobiu on Nov 9, 2025, 11:40 AM
tobiu referenced in commit 931f151 - "bug: sync_all does not move existing local issues to archive on new release #7732" on Nov 9, 2025, 11:51 AM
tobiu referenced in commit 08198d3 - "#7732 safety net" on Nov 9, 2025, 11:59 AM
tobiu referenced in commit e135746 - "#7732 new test" on Nov 9, 2025, 12:28 PM
tobiu referenced in commit acd0c17 - "#7732 WIP" on Nov 9, 2025, 1:29 PM
tobiu referenced in commit 94bf401 - "#7732" on Nov 9, 2025, 2:40 PM
tobiu closed this issue on Nov 9, 2025, 2:49 PM