Repository navigation
chore: build GitHub release notes from the annotated tag message - #38
Merged
Merged
Conversation
Same change as chapkit: the release job used --generate-notes, which only lists merged pull request titles. Take the notes from the tag annotation body and append the generated pull request list. A tag without a body still releases with the generated list and a warning.
Merged
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Ports the chapkit change (dhis2-chap/chapkit#95). The
github-releasejob usedgh release create --generate-notes, which produces only a list of merged pull request titles; the v2.0.0 notes had to be rewritten by hand.The job now uses the annotated tag's body as the release notes and appends GitHub's generated pull request list. A tag without a body still releases from the generated list and emits a workflow warning.
Release tags should therefore be written with a real message, for example
git tag -a v2.0.1 -F notes.md(subject line, blank line, prose). No release is cut by this change.Test plan
actionlintand a YAML parse of.github/workflows/release.ymlpass.generate-notesAPI call were verified locally there.