Repository navigation
fix(release): publish version changelog notes with the shared parser - #591
Merged
Hydralerne merged 2 commits intoSep 16, 2026
Conversation
… notes Release tags are lightweight, so the workflow's `gh release create --notes-from-tag` had nothing to read beyond the "Bump to vX.Y.Z" commit subject: every GitHub Release shipped with an effectively empty description, and release watchers saw no notes (oblien#192). scripts/changelog-notes.ts (zero-dep, node:-only) extracts the version's level-2 section from CHANGELOG.md: exact version match (0.6.1 never matches 0.6.10), tolerant of `v`/bracketed/dated headings, bounded by the next version heading. Missing section falls back to a changelog link; a prerelease with no own section borrows the base version's notes with a prerelease preamble; bodies are cut at 120k chars on a line boundary. Every path returns a body: notes can never fail a release. The publish job writes the notes to a file and passes --notes-file (never shell-interpolated: changelog prose is full of backticks), and on re-runs backfills only releases whose body is empty, so hand-edited release pages are never overwritten. The docker-only path creates no release and is untouched. release.ts now surfaces the resolved notes state in its pre-flight summary so a missing section is visible before the tag is pushed. Tests (bun test, wired into the root test script as test:scripts) cover section bounding, version prefix collisions, fallback and prerelease borrowing, truncation, and extraction against the real CHANGELOG.md.
Farahat612
force-pushed
the
feat/changelog-release-notes
branch
from
August 16, 2026 11:50
8b3fad9 to
da16dce
Compare
Hydralerne
changed the base branch from
main
to
feat/bugfix-batch-2026-09-16
September 16, 2026 05:15
Hydralerne
merged commit Sep 16, 2026
d4d6290
into
oblien:feat/bugfix-batch-2026-09-16
3 of 8 checks passed
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub releases currently use tag notes even though release tags are lightweight, leaving descriptions empty or reduced to a commit subject. This adapts the contributor’s fix to publish the matching
CHANGELOG.mdsection and targets the #892 bug integration branch.The website, updater and release workflow now share the core changelog parser. Exact version matching preserves prerelease/build suffixes, handles dated/bracketed headings and ignores headings inside fenced examples. The workflow imports only the dependency-free parser and needs no package installation. Missing entries use a changelog link; long entries stay within GitHub’s limit. Both custom-file CLI forms work.
Reruns keep manually edited descriptions. Empty descriptions may be backfilled, but a failed read never counts as proof that the description is empty; a backfill failure does not undo successful asset uploads.
Validation:
node_modulesproduces the same release notes.Original contributor commits are retained. This fixes #192 once #892 is merged into main.