Skip to content

fix(changelog): Credit PR commit co-authors when the merge commit has none - #970

Merged
BYK merged 2 commits into
masterfrom
fix/changelog-pr-commit-coauthors
Nov 7, 2026
Merged

BYK merged 2 commits into
masterfrom
fix/changelog-pr-commit-coauthors

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Release changelogs credit co-authors only from the Co-authored-by trailers on the commit that landed on the base branch. When a squash merge clears or replaces the default message, those trailers are lost even though every PR commit still has them, and the entry credits only the PR author.

This dropped credit for most of getsentry/junior 0.284.0. Its PRs are authored by sentry-junior and credit the requester through trailers on each commit. Some squash commits kept the full message (e.g. f98c1907 for #2795 → by @thomasjiangcy with @sentry-junior). Others landed as title-only commits (e.g. 7315e3f2 for #2804 → by @sentry-junior).

Now, when the merged commits of a PR list no co-authors, Craft reads the authors of the PR's commits, the same data the PR preview already uses. fetchPRCoAuthors now takes several PRs and reads them with aliased pullRequest queries, 25 per request. If a number is not a PR, the query fails, but the PRs it did resolve are still used from the partial data. PRs whose merged commit already has co-authors make no extra request.

Cost: a release now makes one extra GraphQL request for every 25 PRs that have no co-authors on their merged commit.

via @BYK.

--

View Session [Sentry]

… none

Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-07 01:26 UTC

@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 77cefbc. Configure here.

Comment thread src/utils/changelog.ts Resolved
@BYK
BYK merged commit 5c713a3 into master Nov 7, 2026
29 checks passed
@BYK
BYK deleted the fix/changelog-pr-commit-coauthors branch November 7, 2026 01:25
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