Skip to content

pr.sh: refuse when main has no required checks - #16

Merged
markope merged 1 commit into
mainfrom
pr-require-checks
Oct 26, 2026
Merged

markope merged 1 commit into
mainfrom
pr-require-checks

Conversation

@markope

@markope markope commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Without a ruleset requiring checks, gh pr merge --auto merges at once, untested. pr.sh merge and release now check repos/{owner}/{repo}/rules/branches/main for a required_status_checks rule and refuse before pushing. Tests with the stub, mutation-checked; the query verified against real repositories.

Without a ruleset requiring checks, 'gh pr merge --auto' merges at once, before any check ran (studio's onboarding pull request merged untested this way). merge and release now refuse before pushing anything.
@markope
markope merged commit 66ce402 into main Oct 26, 2026
66 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