Skip to content

Publish changelog sections as GitHub Release notes - #90

Merged
dblock merged 1 commit into
masterfrom
dblock/changelog-release-notes
Nov 21, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/changelog-release-notes

Conversation

@dblock

@dblock dblock commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

Addresses the "pass the prepared changelog as explicit GitHub Release notes" item from the review of ruby-grape/grape-swagger#1017. The standard workflow created every GitHub Release with --generate-notes, replacing projects' hand-written notes.

  • Changelog formats gain notes(version) on Changelog::Base. It reads the released section using the format's own release heading (Intridea or Keep a Changelog), expands reference links inline, and raises for unreleased, missing, duplicate, or empty sections.
  • Workflow::RubyGem reads those notes before any publication and passes them to hosting, so a missing section fails before gem push. Releases that already carry notes (semantic releases) keep them; changelogs without notes and changelog: nil keep platform-generated notes; hosting: nil skips the read.
  • Changelog::Notes with expand_references: true now drops link definitions trailing the section. The integration specs caught this: the newest Keep a Changelog section runs to the end of the file and picked up its comparison links.
  • Add Release#with_notes and document the behavior in the workflow, changelog, hosting, and recovery docs.

Behavior change: existing projects get changelog notes on their next GitHub Release instead of generated notes. The version stays 0.9.1 because it is unreleased.

Validation

  • PARALLEL_TEST_PROCESSORS=4 bundle exec rake (469 examples, 0 failures; RuboCop no offenses).
  • The composite and workflow integration suites now assert that the GitHub Release is created with --notes-file and that its body is the released section.
  • New specs cover notes for both formats, reference expansion, trailing definitions, ordering before registry publication, failure before any publication, and the generated-notes fallbacks.

Authored by an AI (Claude) acting on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21hZDQo5axDMuFgzL6s

Changelog formats gain notes(version), which reads the released section
with the format's own heading, expands reference links, and drops link
definitions trailing the section. The standard workflow reads it before
any publication and passes it to hosting, so GitHub Releases carry the
reviewed changelog instead of generated notes, and a missing section
fails before the gem is pushed. Releases that already carry notes and
changelogs without notes keep their current behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21hZDQo5axDMuFgzL6s
@dblock
dblock added this pull request to stack #94 November 21, 2026 04:24
@dblock
dblock merged commit cff71e8 into master Nov 21, 2026
11 checks passed
@dblock
dblock deleted the dblock/changelog-release-notes branch November 21, 2026 04:56
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