Skip to content

ci(release): auto-append external contributor credits to release notes - #1249

Merged
ajianaz merged 2 commits into
developfrom
ci/release-contributor-credits
Sep 15, 2026
Merged

ajianaz merged 2 commits into
developfrom
ci/release-contributor-credits

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

What

The release job now appends a "Community contributors" section to every GitHub release automatically.

For each PR referenced in the release's CHANGELOG section, the workflow:

  • Resolves the PR author via gh pr view
  • Skips internal accounts (ajianaz, codecoradev), bots (*[bot], app/*), and team members (association MEMBER / COLLABORATOR / OWNER)
  • Appends - @login — PR title (#N) for genuine external contributors
  • Falls back to a contributors-graph link when a release has no external contributions

Also sets fetch-depth: 0 on the release job checkout so future git-based range queries work if needed.

Why

v0.18.0 shipped an external contribution (#1221 by @KazamiHazaki, merged 2026-09-11) without crediting the contributor anywhere in the release notes. The release notes were amended manually after publication; this workflow change makes attribution automatic for every future release.

Testing

  • yaml.safe_load parses the modified workflow; bash -n passes on the extracted run block.
  • Simulated the exact run block against the v0.18.0 PR list: outputs - @KazamiHazaki — fix(install): copy bundled ORT libs on binary install (#1221), correctly skipping internal PRs (ajianaz) and dependency bots (app/dependabot).
  • gh pr view ... --json author --jq '.author.login' + REST author_association are the exact queries used; the invalid authorAssociation JSON field was caught and removed during testing.

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 0587024 into develop Sep 15, 2026
15 checks passed
@ajianaz
ajianaz deleted the ci/release-contributor-credits branch September 15, 2026 03:39
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