Repository navigation
fix(github): Send a failed merge queue suite to its pull request - #4787
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Nov 30, 2026
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.
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, andpull_request.checks.failednever 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.checkSuiteTargetPullRequestsincheck-suite.tsreturns the suite's same-repository PRs. When a failed suite has none and its branch is a queue branch, it returns PR N instead.pull_request.checks.failedfor PR N, with the queue branch asheadBranch, and the existing watch on Junior's PR handles it.checks.passedmust mean its own head commit.No new event type and no App webhook change. The App already gets these
check_suitedeliveries.via @BYK.
--
View Session [Sentry]