Skip to content

fix(scripts): apply-repo-settings accepts repeated --required-check for names containing commas - #93

Merged
bketelsen merged 1 commit into
mainfrom
apply-repo-settings/required-check-flag
Aug 19, 2026
Merged

bketelsen merged 1 commit into
mainfrom
apply-repo-settings/required-check-flag

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Found while turning the saved apply block into a runner: updex's required checks include Build (linux, amd64) / Build (linux, arm64), which the comma-separated --required-checks would have split into four wrong contexts — a ruleset GitHub waits on forever. Adds a repeatable --required-check <ctx> for exact names; the list flag still works and the two combine (trimmed, deduplicated).

Test: bash -n, shellcheck, and the jq merge exercised with mixed input.

🤖 Generated with Claude Code

…or names containing commas

--required-checks splits on commas, so a matrix job such as
"Build (linux, amd64)" became two bogus contexts and the default-branch
ruleset would have waited forever. --required-check <ctx> (repeatable)
takes one exact name and combines with the list; both are trimmed and
deduplicated.

Co-Authored-By: Claude Fable 5 <[email protected]>
@bketelsen
bketelsen merged commit 7e8c786 into main Aug 19, 2026
2 checks passed
@bketelsen
bketelsen deleted the apply-repo-settings/required-check-flag branch August 19, 2026 02:59
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