Skip to content

Use the hand-written release notes as the GitHub release body - #246

Merged
alexkroman merged 1 commit into
mainfrom
claude/github-release-notes
Oct 15, 2026
Merged

alexkroman merged 1 commit into
mainfrom
claude/github-release-notes

Conversation

@claude

@claude claude Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What & why

Before: GitHub releases show only GitHub's auto-generated "What's Changed" PR list (plus checksums). The hand-written release-notes/X.Y.Z.md reaches only Sparkle's update window.

After: GitHub releases show the same hand-written notes as Sparkle's update window at the top, with the generated PR list and checksums below. If the notes file is missing at publish time, the publish fails in preflight (before tagging). release-build.sh already refuses to build a release without that file, so this can only happen if the file was removed after the build.

How: scripts/release-publish.sh pipes release_notes_body < release-notes/$VERSION.md (HTML comments stripped, the same text the appcast gets) into gh release create ... --notes-file - --generate-notes. gh puts --notes/--notes-file text before the generated notes. The checksum step now edits that combined body. RELEASE.md gets one bullet about this. The appcast path, staging (release-stage.sh) and workflows are not changed.

How it was tested

  • scripts/check.sh --portable passes on Linux (shellcheck, shfmt, prettier, markdownlint, actionlint, release-lib tests, release-notes lint). The Swift build and tests weren't run; CI on macOS verifies them.

  • I ran the new pipeline against a stub gh: the arguments come through as --notes-file - --generate-notes, and stdin carries the stripped bullets from release-notes/0.1.64.md.

  • scripts/check.sh passes (or CI will, if I'm not on a Mac)

  • I read AGENTS.md and this doesn't reintroduce anything deliberately removed

  • Docs updated if behavior changed

🤖 Generated with Claude Code

release-publish.sh now feeds release-notes/X.Y.Z.md (comments stripped,
the same text the appcast's update window shows) to gh release create via
--notes-file, alongside --generate-notes, so the release page leads with
the hand-written notes and keeps GitHub's "What's Changed" PR list and the
checksums below them. The publish preflight fails fast if the file has gone
missing; release-build.sh already refuses to build a release without it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@alexkroman
alexkroman marked this pull request as ready for review October 15, 2026 00:03
@alexkroman
alexkroman merged commit baef46e into main Oct 15, 2026
13 checks passed
@alexkroman
alexkroman deleted the claude/github-release-notes branch October 15, 2026 00:03
@alexkroman alexkroman mentioned this pull request Oct 30, 2026
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.

2 participants