Repository navigation
feat(changelog): Credit commit co-authors and add hide_authors - #934
Merged
Merged
Conversation
Co-Authored-By: Jan Michael Auer <1433023+jan-auer@users.noreply.github.com>
Contributor
|
jan-auer
approved these changes
Oct 27, 2026
Replace the Junior-specific PR body parsing with GitHub's Commit.authors field, which resolves Co-authored-by trailers to GitHub logins. Add a hide_authors release config option to keep PRs in the changelog without crediting specific authors, such as bots. Co-Authored-By: Jan Michael Auer <1433023+jan-auer@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 65ff78f. Configure here.
Render bot authors after human authors, as in "by @alice with @some-bot", so PRs a bot opens on someone's behalf credit both. Bot PR authors come from the GraphQL author type or REST user type; bot co-authors from their [bot] login suffix. Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
Rebase merges put several commits of one PR on the base branch. Merge the co-authors of all of them into the deduplicated entry instead of keeping only the newest commit's.
BYK
requested changes
Oct 27, 2026
Default hidden authors to an empty set, document that a sole bot author is credited on its own, and explain why the PR author __typename is queried.
BYK
approved these changes
Oct 27, 2026
…or-requester # Conflicts: # docs/src/content/docs/configuration.md Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
8 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changelog entries only credited the PR author. When a bot opens a PR on someone's behalf, the bot gets the credit and the person who asked for the work doesn't.
Entries now also credit co-authors. Craft reads GitHub's GraphQL
Commit.authorsfield, which turnsCo-authored-bytrailers into GitHub logins when the trailer email belongs to a GitHub account. This adds one field to the existing batched commit query. For squash merges, the squash commit carries the PR's trailers. Merge commits have no trailers, so they keep crediting only the PR author, and the merger is never credited. The PR changelog preview reads the authors of the PR's own commits, since that PR isn't merged yet.People are credited first, then bots after
with. For example, a PR opened bysentry-junior[bot]with aCo-authored-bytrailer forBYKrenders asby @BYK with @sentry-junior. Bot PR authors are detected by account type (GraphQL__typename, RESTuser.type). Bot co-authors are detected by their[bot]login suffix. Logins are compared case-insensitively and without the[bot]suffix, because GitHub's APIs return bot logins both with and without it. When there are more than three people, the list collapses to@a, @b and N others.There's also a new optional
hide_authorssetting in.github/release.yml. It keeps a PR in the changelog but removes the listed accounts from its credit. That's different fromexclude.authors, which drops the PR entirely.via @jan-auer, @BYK.
--
View Junior Session [Sentry]