Skip to content

ci: credit contributors in published release notes - #3109

Merged
afonsojramos merged 1 commit into
mainfrom
ci/release-contributors
Jul 29, 2026
Merged

ci: credit contributors in published release notes#3109
afonsojramos merged 1 commit into
mainfrom
ci/release-contributors

Conversation

@afonsojramos

Copy link
Copy Markdown
Member

Summary

Adds contributor credit to the GitHub release notes that release-please produces.

release-please's changelog is commit-based and carries no author attribution. Switching its changelog-type to github would gain attribution but discard the emoji conventional-commit sections (#3095), so instead the publish-release step now enriches the release body at publish time:

  • fetches GitHub's generated release notes for the tag (driven by the existing .github/release.yml categories),
  • extracts the unique PR authors (bots filtered: github-actions, renovate, dependabot) and appends them as a ### 🫶 Contributors section,
  • appends GitHub's ## New Contributors section verbatim when present (first-time contributors),
  • publishes the draft with the enriched body in the same PATCH.

The @mentions also make GitHub render the contributor avatar strip on the release page. CHANGELOG.md is untouched, and a re-run of an already-published release will not duplicate the sections.

Verification

Dry-ran the exact script against the real v7.1.1 release data: body preserved, ### 🫶 Contributors appended with @afonsojramos @setchy (bot filtered out), New Contributors correctly omitted when empty. actionlint and zizmor clean.

@afonsojramos
afonsojramos requested a review from setchy as a code owner July 29, 2026 11:48
@github-actions github-actions Bot added the build Build, action or package manager changes label Jul 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

@afonsojramos
afonsojramos merged commit 968715f into main Jul 29, 2026
16 checks passed
@afonsojramos
afonsojramos deleted the ci/release-contributors branch July 29, 2026 12:27
@github-actions github-actions Bot added this to the Release 7.x.x milestone Jul 29, 2026
@setchy setchy modified the milestones: Release 7.1.0, Release 7.x.x Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build, action or package manager changes

Development

Successfully merging this pull request may close these issues.

2 participants