LearnNewsExamplesServices
Frontmatter
id7580
titleAdd Frontmatter to Synchronized Release Notes
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 20, 2025, 3:27 PM
updatedAtOct 21, 2025, 11:09 AM
githubUrlhttps://github.com/neomjs/neo/issues/7580
authortobiu
commentsCount0
parentIssue7564
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 21, 2025, 11:09 AM

Add Frontmatter to Synchronized Release Notes

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 20, 2025, 3:27 PM

To improve the structure and utility of the locally synchronized release notes, we should add YAML frontmatter containing key metadata. This change also standardizes the frontmatter convention across the entire sync service.

During implementation, a broader strategic decision was made to align all frontmatter keys with the camelCase format used by the source GitHub API (gh CLI). This improves maintainability and reduces transformation logic.

Acceptance Criteria

  1. The #syncReleaseNotes method in SyncService.mjs is updated to fetch tagName, name, and publishedAt and save them as camelCase YAML frontmatter.
  2. The #formatIssueMarkdown method is refactored to use camelCase for all its frontmatter keys (e.g., createdAt, commentsCount) instead of snake_case, ensuring consistency.
  3. The gray-matter library is used to stringify the content with the fetched metadata as YAML frontmatter for both issues and release notes.
  4. The filename convention for release notes is confirmed to be clean and predictable (e.g., v10.9.0.md from a v10.9.0 tag).
tobiu assigned to @tobiu on Oct 20, 2025, 3:27 PM
tobiu added the enhancement label on Oct 20, 2025, 3:27 PM
tobiu added the ai label on Oct 20, 2025, 3:27 PM
tobiu added parent issue #7564 on Oct 20, 2025, 3:27 PM
tobiu referenced in commit 48d20c1 - "Add Frontmatter to Synchronized Release Notes #7580" on Oct 21, 2025, 11:06 AM
tobiu referenced in commit 66824ba - "#7580 enhanced scope" on Oct 21, 2025, 11:09 AM
tobiu closed this issue on Oct 21, 2025, 11:09 AM