Skip to content

fix(ci): list a branch's pull requests with GET in the branch cleanup - #148

Merged
jhosepmyr merged 3 commits into
developfrom
bugfix/147-branch-cleanup-pulls
Oct 14, 2026
Merged

jhosepmyr merged 3 commits into
developfrom
bugfix/147-branch-cleanup-pulls

Conversation

@jhosepmyr

Copy link
Copy Markdown
Contributor

Closes #147

gh api -f head=... -f state=all turns into a POST to the create-a-pull-request endpoint, so every lookup answered 422 ("base wasn't supplied"), the jq steps printed errors, and the open-PR and do-not-delete protections were never evaluated; only the git-ancestry and 30-day rules ran. Now it lists with --method GET, and a branch whose PRs cannot be read is kept.

Tested the lookup against real branches (open, merged, nonexistent). The schedule runs from main, so this takes effect after the next release.

@jhosepmyr
jhosepmyr merged commit 18785df into develop Oct 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant