detect_required_checks() uses short names ("build", "test", "benchmarks") that don't match
the actual nested reusable workflow check names (e.g.,
"Run CI: Build, Test, Benchmark, Pack / Build the source code / build (ubuntu-latest, ./vm2.Glob.slnx)").
The script uses the classic API (repos/{owner}/{repo}/branches/{branch}/protection), but vm2.Glob
uses the newer GitHub Rulesets. Standardize on one approach.
Can't self-approve PRs. Combined with enforce_admins: true, merging is permanently blocked
without removing the protection rule. Make review count configurable or default to 0.
detect_required_checks() doesn't look for package projects. Add detection and include "pack"
in required_checks when found.
Even admins can't bypass required reviews. Set to false or make configurable.
- Merge vm2.Glob PR #3 (using bypass checkbox)
- Capture actual CI check names from the workflow run on
main - Update
repo-setup.shwith correct check names and chosen protection model - Apply the same protection configuration to vm2.Glob and vm2.Ulid