Branch Protection Guide
April 7, 2026 ยท View on GitHub
Recommended GitHub protection rules for main:
- Require a pull request before merging.
- Require at least 1 approving review.
- Require review from Code Owners.
- Dismiss stale approvals when new commits are pushed.
- Require conversation resolution before merge.
- Require status checks to pass.
- Select the
validateGitHub Actions check. - Block force pushes and branch deletion.
Recommended admin posture:
- Keep admin bypass available while the repository is still being bootstrapped.
- Turn on stricter admin enforcement only when the collaboration flow is stable.