Skip to content

fix(github): Run the next-action backfill again for the merge access rule - #4476

Merged
BYK merged 3 commits into
mainfrom
fix/github-backfill-merge-access
Nov 26, 2026
Merged

BYK merged 3 commits into
mainfrom
fix/github-backfill-merge-access

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

#4472 gives no merge ask to a requester without write access, but only a webhook sync applies the rule. A quiet pull request whose "Ready to merge" item went to such a requester, like getsentry/shepherd#30, keeps the item until its next GitHub event, which can be never.

The one-off backfill re-derives the next action of every open Junior pull request, and pull-request-action-backfill.ts says to bump VERSION when a new rule must reach quiet pull requests. This bumps it to v2, so the heartbeat runs the backfill once more. The sync changes an item only when the derived action is not the saved one, so most pull requests keep their items. A stale merge item closes. Where the requester has not reviewed yet, it becomes a review ask.

v1 also asked in limbo where the requester had acted before the last push, to bring limbo asks to quiet pull requests. v2 only brings the merge access rule, so ASK_AFTER_REQUESTER_ACTED is off and it asks in limbo as a webhook does. A requester who already reviewed or commented gets no new GitHub review request.

Cursor Bugbot found the missing rerun on #4472 after it merged.

via @BYK.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 26, 2026 12:38pm UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 26, 2026 12:23
@sentry-junior
sentry-junior Bot requested a review from BYK November 26, 2026 12:23
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 26, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 using default effort 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 c5d4788. Configure here.

@BYK
BYK merged commit d806608 into main Nov 26, 2026
56 checks passed
@BYK
BYK deleted the fix/github-backfill-merge-access branch November 26, 2026 15:01

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 2067cc0d Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant