Skip to content

fix(github): Send a failed merge queue suite to its pull request - #4787

Merged
BYK merged 1 commit into
mainfrom
fix/merge-queue-checks-failed
Nov 30, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/merge-queue-checks-failed

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Follow-up to #4783.

GitHub's merge queue runs a PR's checks on gh-readonly-queue/<base>/pr-<N>-<sha> and attaches no PR to those check suites. So when a queue run failed, the suite became a repository event, and pull_request.checks.failed never reached PR N. After #4783, a PR the queue removes for failed checks gets no merge ask. Without this change, nothing tells Junior to fix its own PR either, so the PR is stuck with nothing asking anyone to act on it.

  • checkSuiteTargetPullRequests in check-suite.ts returns the suite's same-repository PRs. When a failed suite has none and its branch is a queue branch, it returns PR N instead.
  • Event normalization, publish targets, and the facts load all use it. A failed queue suite therefore publishes the existing pull_request.checks.failed for PR N, with the queue branch as headBranch, and the existing watch on Junior's PR handles it.
  • Passing queue suites stay repository events: they need no fix, and a PR's checks.passed must mean its own head commit.

No new event type and no App webhook change. The App already gets these check_suite deliveries.

via @BYK.

--

View Session [Sentry]

GitHub's merge queue runs a PR's checks on gh-readonly-queue/<base>/pr-<N>-<sha>
and attaches no PR to that check suite, so a failed queue run became a
repository event and pull_request.checks.failed never reached PR N. Map a
failed suite on that branch with no attached PR to PR N, so the existing
checks.failed path handles it. Passing queue suites stay repository events.
@vercel

vercel Bot commented Nov 30, 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 30, 2026 12:12pm UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 30, 2026 12:18
@sentry-junior
sentry-junior Bot requested a review from BYK November 30, 2026 12:18
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 30, 2026
@BYK
BYK added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 2a95f27 Nov 30, 2026
58 checks passed
@BYK
BYK deleted the fix/merge-queue-checks-failed branch November 30, 2026 13:04

This branch was successfully deployed

1 active deployment
Preview – junior-docs — f0e83b51 Deployed Nov 30, 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