LearnNewsExamplesServices
Frontmatter
id7567
titleImplement Local to GitHub Sync (Push)
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 20, 2025, 1:24 PM
updatedAtOct 23, 2025, 12:53 AM
githubUrlhttps://github.com/neomjs/neo/issues/7567
authortobiu
commentsCount0
parentIssue7564
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 20, 2025, 1:59 PM

Implement Local to GitHub Sync (Push)

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 20, 2025, 1:24 PM

This ticket covers the implementation of the "push" half of the synchronization process. The SyncService will be enhanced to detect local changes in the Markdown issue files and push them back to GitHub.

The sync logic will follow the "push-then-pull" model, so this push operation should be the first step in the runFullSync orchestration.

Acceptance Criteria

  1. A private method, #pushToGitHub(), is created in the SyncService.
  2. This method is called by runFullSync() before the pull operation.
  3. The method scans all .md files in the .github/ISSUES/ and .github/ISSUE_ARCHIVE/ directories.
  4. For each file, it checks the file's modification time (mtime) against the last_sync timestamp in .sync-metadata.json.
  5. If the local file is newer, the service parses the file to extract the title and body.
    • The title should be extracted from the main # heading.
    • The body should be the content of the file, excluding the frontmatter and the `
tobiu assigned to @tobiu on Oct 20, 2025, 1:24 PM
tobiu added the enhancement label on Oct 20, 2025, 1:24 PM
tobiu added the ai label on Oct 20, 2025, 1:24 PM
tobiu added parent issue #7564 on Oct 20, 2025, 1:24 PM
tobiu referenced in commit 9980bd1 - "Implement Local to GitHub Sync (Push) #7567" on Oct 20, 2025, 1:59 PM
tobiu closed this issue on Oct 20, 2025, 1:59 PM