Repository navigation
fix(ci): protect open-PR bases in branch-cleanup (openchamber#629) - #1586
Conversation
branch-cleanup fetched only open-PR headRefName and protected only heads. A solely-behind, inactive base branch of a stacked PR would be deleted, and GitHub closes an open PR whose base is deleted. Fetch baseRefName too, add is_open_pr_base, and SKIP open-pr-base, mirroring the fix already landed for dezren39/darwin-nix#985. Fail-before-deletion behaviour is preserved: both gh pr list calls run under set -euo pipefail before any deletion. Refs developing-today-forks/openchamber#629.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Companion to developing-today-forks/openchamber#629.
Same defect in this repo's copy of branch-cleanup.yml: only open-PR heads were protected, not bases. Deleting a stacked PR's base branch closes that PR.
baseRefNamealongsideheadRefNameis_open_pr_base+SKIP open-pr-baseMirrors dezren39/darwin-nix#985 fix. Validation: YAML parses (yq), extracted run script passes
bash -n,is_open_pr_baseexercised at shell level.Need help on this PR? Tag
@codesmith-botwith what you need.