Skip to content

ci: stable-style changelog notes for pre-releases - #162

Merged
its-mash merged 1 commit into
mainfrom
feat/prerelease-changelog-notes
Jun 15, 2026
Merged

ci: stable-style changelog notes for pre-releases#162
its-mash merged 1 commit into
mainfrom
feat/prerelease-changelog-notes

Conversation

@its-mash

Copy link
Copy Markdown
Member

What

Pre-release GitHub releases currently show a generic body ("Automated pre-release built from main (sha)…"). This makes the body a real stable-style changelog instead.

How

In the Create draft pre-release step, read release-please's pending CHANGELOG.md from its release-PR branch (release-please--branches--main--components--mcpmux) and extract the top (pending) version section — the same grouped Features / Bug Fixes / … notes the eventual stable v<base> will ship. So each v0.4.0-<run> pre-release previews exactly what's coming in v0.4.0, including the ## [0.4.0](compare) (date) header.

  • Falls back to the short "early build" note when no release PR is open (chore-only history).
  • Body is assembled in body.md via printf and passed with -f body="$(cat body.md)", so markdown stays intact (no YAML block-scalar indentation leaking in, no column-0 break).
  • Dry-run against the live CHANGELOG.md produced clean markdown; YAML validated; pre-commit hook green.

Note on versioning

The version keeps its numeric pre-release suffix (0.4.0-186) — that's required so the updater can order pre-release vs stable and so the Windows MSI bundles. Only the notes now mirror stable; the version intentionally stays distinguishable.

Replace the generic pre-release body with the pending version's section
from release-please's CHANGELOG.md (read off its release-PR branch) — the
same grouped Features / Bug Fixes notes the stable release will ship, so
each pre-release previews exactly what's coming in v<base>. Falls back to
a short note when no release PR is open. Body is assembled in a file via
printf to keep markdown intact.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash
its-mash merged commit 1762295 into main Jun 15, 2026
11 checks passed
@its-mash
its-mash deleted the feat/prerelease-changelog-notes branch June 15, 2026 04:16
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