Repository navigation
Workflow: compare every PR check against the merge commit's base parent - #2181
Merged
Merged
Conversation
The contract, suite and Windows path checks took the event's base.sha, which can be an older main than the one GitHub merged the pull request onto. Main's later changes then counted as the pull request's own: on 25 November main's migration 0105 failed the board check of PRs that never touched it (#2077, #2125, #2126), and the checks behind it never ran. The scope step already used HEAD^1 for this reason; these steps now resolve the same parent to a commit. The workflow test pins it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98
enabled auto-merge (squash)
November 25, 2026 16:55
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.
What this fixes
The contract, suite and Windows path checks compared a pull request against the event's
base.sha. GitHub doesn't move that when main moves, so it can be older than the main the pull request was merged onto, and main's later changes then count as the pull request's own. On 25 November main's migration 0105 (#2169) failed the board check on #2077, #2125 and #2126, which never touched it, and the checks after the board step never ran there.The change
Those three steps now compare against the merge commit's base parent (
git rev-parse HEAD^1), as the scope step already does since 1508dcd. It is resolved to a commit before npm sees it, so cmd.exe on the Windows runner never meets the^.scripts/pr-check-plan.test.mjsfails if a step goes back tobase.sha.Musically: nothing changes. No unit is involved.
Checked
npx vitest run scripts/pr-check-plan.test.mjs: 25 passed, the new assertions included.Guides: nothing. The scope step's comment already named the trap; the test now holds every step to it.
🤖 Generated with Claude Code