Repository navigation
ci(release): publish structured release notes - #37
Merged
Merged
Conversation
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.
What and why
The release job gave the GitHub release no body. It now publishes notes in the shape of the openclaw releases: Highlights, Changes, Fixes, Pull requests, Contributors, plus a full-changelog compare link.
scripts/release-notes.mjs vX.Y.Zreads the tag's## [X.Y.Z]section ofCHANGELOG.md:### Highlights→ Highlights; Added/Changed/Removed → Changes; Fixed/Security → Fixes. A stable tag without a Highlights list fails the job before anything is built or published.@in a PR title is neutralised so a title cannot ping anyone.release.yml: full checkout (for the tags),pull-requests: read, the notes passed asreleaseBody, andprerelease: truefor tags with a suffix. A pre-release is never GitHub's "latest", so the updater (releases/latest/download/latest.json) cannot offer a test release to installed copies.How you checked it
node --test scripts/release-notes.test.mjs: 6 tests (previous-tag choice, changelog parsing, PR numbers from merge and squash commits, section order, bot handling, no pings, empty sections, pre-release placeholder).mainas the head: it lists the 15 PRs since v0.4.0 with authors and one contributor.release.ymlandci.ymlparse as YAML.rctag test will be its first run; it exercises the PR and contributor path because a pre-release tag gets the placeholder plus those sections.