Skip to content

Commit

Permalink
Add auto-generated changelog to GitHub releases
Browse files Browse the repository at this point in the history
Generated notes include all pull requests contained in a given release. PR authors are tagged, giving them proper credit.

Note that the generated notes are appended to the old format, they do not replace it.

Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Feb 27, 2024
1 parent 6718b8b commit df6aa81
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
changelog:
categories:
- title: Enhancements 🚀
labels:
- enhancement
- title: Bug Fixes 🐛
labels:
- defect
- title: Dependency Updates 🤖
labels:
- dependencies
- title: Other Changes
labels:
- "*"
3 changes: 3 additions & 0 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ jobs:
\`\`\`
EOF
gh release view ${{ needs.read-version.outputs.version }} \
--json body --jq .body >> .github/default-release-notes.md
gh release edit ${{ needs.read-version.outputs.version }} \
--notes-file ".github/default-release-notes.md"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
gh release create "${VERSION}" ${GH_OPTS} \
--target "${{ github.ref_name }}" \
--title "${VERSION}" \
--notes-file ".github/default-release-notes.md"
--generate-notes

0 comments on commit df6aa81

Please sign in to comment.