Context and request
Protect main so a pull request cannot merge until the repository's CI checks succeed. The current ruleset requires a pull request and approval but declares no required status checks, allowing auto-merge to land on approval alone. #147 documents this gap; it does not change repository governance.
Acceptance criteria
- The
main ruleset requires the CI status checks that verify this repository's pull requests.
- An auto-merge waits for those checks and the existing approval requirements.
- A pull request with a failing, pending, or absent required check cannot merge.
- The configured checks match the jobs currently expected by the repository's pull-request workflow.
- The change and its verification have durable audit evidence on this issue.
Constraints and non-goals
Technical decisions
This is an operational Task: the deliverable is a GitHub ruleset configuration, not a repository file. Apply the required-status-check rule to the existing main branch ruleset and select the CI checks emitted for pull requests. Preserve the existing deletion, non-fast-forward, linear-history, and pull-request rules.
Implementation plan
Context and request
Protect
mainso a pull request cannot merge until the repository's CI checks succeed. The current ruleset requires a pull request and approval but declares no required status checks, allowing auto-merge to land on approval alone. #147 documents this gap; it does not change repository governance.Acceptance criteria
mainruleset requires the CI status checks that verify this repository's pull requests.Constraints and non-goals
MSXOrg/docsonly; do not change workflow triggers or rulesets in other repositories.PSModule/Yaml.Technical decisions
This is an operational Task: the deliverable is a GitHub ruleset configuration, not a repository file. Apply the required-status-check rule to the existing
mainbranch ruleset and select the CI checks emitted for pull requests. Preserve the existing deletion, non-fast-forward, linear-history, and pull-request rules.Implementation plan
mainruleset and CI check names as the baseline verification evidence.mainruleset to require the selected CI status checks.