LearnNewsExamplesServices
Frontmatter
id8483
titleRefine GitHub Release Content: Strip Frontmatter and Use H1 as Title
stateClosed
labels
enhancementaibuild
assigneestobiu
createdAtJan 9, 2026, 10:04 PM
updatedAtJan 9, 2026, 10:09 PM
githubUrlhttps://github.com/neomjs/neo/issues/8483
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 9, 2026, 10:09 PM

Refine GitHub Release Content: Strip Frontmatter and Use H1 as Title

Closed v11.20.0 enhancementaibuild
tobiu
tobiu commented on Jan 9, 2026, 10:04 PM

The current release workflow simply passes the raw markdown file to gh release create. This results in YAML frontmatter appearing in the release body and redundant titles.

We need to update buildScripts/publishRelease.mjs to:

  1. Parse the target release note markdown file.
  2. Extract the H1 heading (e.g., # Neo.mjs v11.19.1 Release Notes) to use as the GitHub Release Title.
  3. Strip the YAML frontmatter.
  4. Strip the H1 heading from the body content.
  5. Ensure the body starts with the content immediately following the title (e.g., **Release Type:** ...).
  6. Generate a temporary cleaned release note file to pass to the gh CLI.
tobiu added the enhancement label on Jan 9, 2026, 10:04 PM
tobiu added the ai label on Jan 9, 2026, 10:04 PM
tobiu added the build label on Jan 9, 2026, 10:04 PM
tobiu referenced in commit 446f3b1 - "feat: Refine release note parsing in publishRelease (#8483)" on Jan 9, 2026, 10:08 PM
tobiu assigned to @tobiu on Jan 9, 2026, 10:08 PM
tobiu
tobiu Jan 9, 2026, 10:08 PM

Input from Gemini 3 Pro:

✦ I have updated buildScripts/publishRelease.mjs to parse the release note markdown file. The script now:

  1. Strips YAML frontmatter.
  2. Extracts the H1 heading to use as the GitHub Release Title.
  3. Uses the remaining body content (without the H1) for the release description.
  4. Correctly uses the bare version tag (e.g., 11.19.1) for the release creation.
tobiu closed this issue on Jan 9, 2026, 10:09 PM