Repository navigation
Fix: scope pull request checks against the merge commit base parent - #1876
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
scopejob checks out the pull request merge commit withfetch-depth: 2and compared it togithub.event.pull_request.base.sha. That SHA can be an older main than the one GitHub merged onto (run 44745067871: merged onto e84798e, told 18c513c; run 44740944062: merged onto 78fdd2e, told 0a73311). The older commit is not in two commits of history, sogit rev-parsedied withfatal: Needed a single revisionandmodule-pr-okwent red on PRs that had nothing wrong (Improvement: Digitakt II base: added track machines and their sound-chip players #1799, Improvement: the site syncs Octatrack USB Audio as a module package (switched off until a package is published) #1865, Stage Octatrack base 0.7.12 for configurable USB Audio #1848, Improvement: send an Elektron OS upgrade over USB MIDI from the site's engine #1762, Improvement: the site builds a Rytm set in the 3.7 MiB mod area on base 0.7.1 #1740).HEAD^1, the merge commit base parent, which the shallow checkout always holds; the workflow comment already said scope compares against the base parent.scripts/pr-check-plan.test.mjsnow checks the workflow keeps it. The other jobs check out full history and are unchanged.vitest run scripts/pr-check-plan.test.mjs scripts/change-scope.test.mjs: 124 passed. In agit clone --depth 2of a merge commit,node scripts/pr-check-plan.mjs --base 18c513cd9… --head HEADreproduces the CI error and--base HEAD^1prints the scope. Fullnpm run pr:readynot run: one workflow line and one test.🤖 Generated with Claude Code