Repository navigation
fix(land-and-deploy): gate on all checks when no required checks are configured - #3001
Closed
harshitgavita-07 wants to merge 1 commit into
Closed
harshitgavita-07 wants to merge 1 commit into
harshitgavita-07 wants to merge 1 commit into
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Contributor
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.
hey @garrytan ,
Fixes #2995
Problem
Since v1.90.2.0,
/land-and-deploySteps 2-3 gate CI only ongh pr checks --required. On a repo that declares no required checks — every private repo on GitHub Free, and any repo without branch protection — the CLI reports "no required checks reported", the skill reads that as "nothing to wait for", skips the CI wait, and can merge over red or still-running CI.Fix
--requiredreports none configured, re-query all checks (gh pr checks "$PR_NUMBER" --repo "$REPO" --json name,state,bucket,link) and gate on those. "None required" never means "nothing to wait for". "No checks exist at all" remains a pass.--required --watchwhen required checks are configured, a plain--watchover all checks otherwise.Scope kept to the gate itself;
sections/merge-and-deploy.mdis untouched because a fixed gate stops the flow long before the merge fallback.Verification
test/land-and-deploy-flow.test.tspins the fallback: the all-checks command, the "None required" wording, the removal of "All pass (or none required)", the Step 3 all-checks watch, and the generatedSKILL.mdcarrying the change. The text it asserts did not exist before this change, so it fails on current main.bun test test/land-and-deploy-flow.test.ts— 25/25 pass.test/land-and-deploy-postfail.test.ts+test/carve-section-loading-land-and-deploy.test.ts— same results as pristine main (38 pass; the 1 fail/1 error there is a pre-existing missing@anthropic-ai/claude-agent-sdkmodule in a fresh checkout, reproduced on unmodified main).SKILL.mdregenerated withbun run gen:skill-docsafter editingSKILL.md.tmpl.