Skip to content

chore: build GitHub release notes from the annotated tag message - #38

Merged
mortenoh merged 1 commit into
mainfrom
chore/release-notes-from-tag
Sep 6, 2026
Merged

mortenoh merged 1 commit into
mainfrom
chore/release-notes-from-tag

Conversation

@mortenoh

@mortenoh mortenoh commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Ports the chapkit change (dhis2-chap/chapkit#95). The github-release job used gh 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

  • actionlint and a YAML parse of .github/workflows/release.yml pass.
  • The step text is identical to the one already exercised in chapkit's workflow; the tag-body extraction and the generate-notes API call were verified locally there.
  • End-to-end confirmation happens on the next tag.

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.
@mortenoh
mortenoh merged commit 02a3da2 into main Sep 6, 2026
7 checks passed
@mortenoh
mortenoh deleted the chore/release-notes-from-tag branch September 6, 2026 17:47
@mortenoh mortenoh mentioned this pull request Sep 6, 2026
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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