Skip to content

ci(release): publish structured release notes - #37

Merged
arifintahu merged 2 commits into
mainfrom
ci/release-notes
Oct 28, 2026
Merged

arifintahu merged 2 commits into
mainfrom
ci/release-notes

Conversation

@arifintahu

@arifintahu arifintahu commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

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.Z reads the tag's ## [X.Y.Z] section of CHANGELOG.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.
  • Pull requests and contributors come from the GitHub API: the PRs in the merge or squash commits since the previous stable tag, with their authors. Bot PRs (Dependabot) are listed without a thank-you and are not contributors. @ 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 as releaseBody, and prerelease: true for 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.
  • The 1.0.0 changelog entry now has Highlights and PR references. CONTRIBUTING.md and CLAUDE.md describe the release step.
  • CI runs the script's unit tests.

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).
  • Ran the script against the real GitHub API with main as the head: it lists the 15 PRs since v0.4.0 with authors and one contributor. release.yml and ci.yml parse as YAML.
  • Not tested: a real workflow run (tags only). The rc tag test will be its first run; it exercises the PR and contributor path because a pre-release tag gets the placeholder plus those sections.

@arifintahu arifintahu changed the title ci(release): publish the changelog section as the release body ci(release): publish structured release notes Oct 28, 2026
@arifintahu
arifintahu merged commit 4e1daaf into main Oct 28, 2026
@arifintahu
arifintahu deleted the ci/release-notes branch October 28, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant