Skip to content

ci: use GitHub's generated release notes to credit PR authors - #33

Merged
Bonajo merged 1 commit into
mainfrom
ci/release-notes-credits
Dec 3, 2026
Merged

Bonajo merged 1 commit into
mainfrom
ci/release-notes-credits

Conversation

@Bonajo

@Bonajo Bonajo commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

After semantic-release publishes a release, a new step in the release workflow replaces the release notes with GitHub's generated notes between the previous and the new tag, the same as "Generate release notes" in the UI:

  • What's Changed: every merged PR "by @author", so contributors get credit
  • New Contributors: "@user made their first contribution in #N"
  • Full Changelog: a compare link

semantic-release still decides the version, creates the tag and publishes the release. Its own notes are built from git commits, which carry no GitHub usernames. The step runs only when a release was actually published, and uses GITHUB_TOKEN; the release job already has contents: write.

This is the same step as in FontysVenlo/beamer-fontys. It is a ci: change, so merging it does not create a release.

Testing

  • actionlint reports nothing on the changed workflow.
  • I dry-ran the step's commands against the latest release, printing the result instead of saving it. It produced "What's Changed" with the PRs since the previous release, each with its author, and the Full Changelog compare link.

After a release, the notes are replaced by GitHub's generated notes:
every merged PR "by @author", a "New Contributors" section and a
Full Changelog link, as on releases made with "Generate release
notes". semantic-release's notes come from git commits, which carry no
GitHub usernames.
@Bonajo
Bonajo merged commit e270343 into main Dec 3, 2026
29 checks passed
@Bonajo
Bonajo deleted the ci/release-notes-credits branch December 3, 2026 08:14
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