Repository navigation
Publish changelog sections as GitHub Release notes - #90
Merged
Merged
Conversation
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
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.
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.notes(version)onChangelog::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::RubyGemreads those notes before any publication and passes them to hosting, so a missing section fails beforegem push. Releases that already carry notes (semantic releases) keep them; changelogs withoutnotesandchangelog: nilkeep platform-generated notes;hosting: nilskips the read.Changelog::Noteswithexpand_references: truenow 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.Release#with_notesand 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).--notes-fileand that its body is the released section.Authored by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21hZDQo5axDMuFgzL6s