LearnNewsExamplesServices
Frontmatter
id7572
titleImplement Dynamic Release Fetching in SyncService
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 20, 2025, 2:44 PM
updatedAtOct 20, 2025, 2:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/7572
authortobiu
commentsCount0
parentIssue7564
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 20, 2025, 2:55 PM

Implement Dynamic Release Fetching in SyncService

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 20, 2025, 2:44 PM

With the configuration now based on a syncStartDate, the SyncService must be updated to dynamically fetch release data from GitHub instead of relying on a static list. This fetched data will be used by the archiving logic.

Acceptance Criteria

  1. A new private method, #fetchAndCacheReleases(), is created in SyncService.mjs.
  2. This method is called once at the beginning of the runFullSync() orchestration.
  3. It executes gh release list --json tagName,publishedAt --limit 1000 to get all releases.
  4. It filters the fetched releases, keeping only those with a publishedAt date on or after the syncStartDate from the config.
  5. It sorts the filtered releases by publishedAt date in descending order (newest first).
  6. The resulting array of { tagName, publishedAt } objects is stored in an instance property (e.g., this.releases) for use by other methods during the sync.

Benefits

  • Makes the archiving process fully automated and aware of the latest project releases.
  • Eliminates the need for manual configuration updates when a new version is released.
  • Ensures the service has an accurate, up-to-date list of all relevant releases.
tobiu assigned to @tobiu on Oct 20, 2025, 2:44 PM
tobiu added the enhancement label on Oct 20, 2025, 2:44 PM
tobiu added parent issue #7564 on Oct 20, 2025, 2:44 PM
tobiu added the ai label on Oct 20, 2025, 2:44 PM
tobiu referenced in commit 5d70430 - "Implement Dynamic Release Fetching in SyncService #7572" on Oct 20, 2025, 2:55 PM
tobiu closed this issue on Oct 20, 2025, 2:55 PM