Repository navigation
ci: leave the cascade PR open when auto-merge is not allowed - #258
Merged
Merged
Conversation
With "Allow auto-merge" off in the repository settings, enabling auto-merge on the cascade PR fails with "Auto merge is not allowed for this repository", which failed the whole job although the PR was opened (#257). The job now reports a notice and leaves the PR open for a manual merge; any other failure of `gh pr merge` still fails it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxhC1CBg4rnTu9UjAMcCpL
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.
Problem
The "Cascade 4.x into master" job failed on the push of #256: it opened the cascade PR (#257), then
gh pr merge --autofailed withbecause "Allow auto-merge" is off in the repository settings. The PR itself was fine (its checks are green), but the job ended red.
Change
cascade-merge.yml:gh pr merge --autofails because auto-merge is not allowed, the job prints the error and a::notice("merge the cascade PR manually"), then succeeds. The PR stays open for a manual merge.gh pr mergestill fails the job.Testing
I ran the step's script locally with a stand-in
gh:The YAML parses and the script passes
bash -n.Generated by Claude Code