Skip to content

feat(changelog): Credit commit co-authors and add hide_authors - #934

Merged
BYK merged 7 commits into
masterfrom
feat/changelog-junior-requester
Oct 27, 2026
Merged

BYK merged 7 commits into
masterfrom
feat/changelog-junior-requester

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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.authors field, which turns Co-authored-by trailers 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 by sentry-junior[bot] with a Co-authored-by trailer for BYK renders as by @BYK with @sentry-junior. Bot PR authors are detected by account type (GraphQL __typename, REST user.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_authors setting in .github/release.yml. It keeps a PR in the changelog but removes the listed accounts from its credit. That's different from exclude.authors, which drops the PR entirely.

via @jan-auer, @BYK.

--

View Junior Session [Sentry]

Co-Authored-By: Jan Michael Auer <1433023+jan-auer@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-27 19:07 UTC

Comment thread docs/src/content/docs/configuration.md Resolved
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>
@sentry-junior sentry-junior Bot changed the title feat(changelog): Credit requesters of Junior pull requests feat(changelog): Credit commit co-authors and add hide_authors Oct 27, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread src/utils/changelog.ts Resolved
sentry-junior Bot and others added 2 commits October 27, 2026 16:10
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.
Comment thread src/utils/changelog.ts Resolved
Comment thread src/utils/changelog.ts Resolved
Comment thread src/utils/changelog.ts Resolved
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.
@sentry-junior
sentry-junior Bot requested a review from BYK October 27, 2026 17:35
…or-requester

# Conflicts:
#	docs/src/content/docs/configuration.md

Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
@BYK
BYK merged commit 3817aa2 into master Oct 27, 2026
29 checks passed
@BYK
BYK deleted the feat/changelog-junior-requester branch October 27, 2026 19:06

This branch was successfully deployed

1 active deployment
false — 98578383 Deployed Oct 27, 2026 by sentry-junior[bot] via Build #3230
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.

2 participants