Problem
Branch protection is enabled on main, but the current policy is minimal and does not enforce meaningful review gates:
- Required approving reviews: 0 — PRs can be merged without any approval
- Dismiss stale reviews: No
- Require code owner reviews: No
- Require signed commits: No
- Enforce for admins: No
This effectively allows direct merges without review.
Recommended Changes
Update the branch protection rule on main to include:
How To Update
- Go to Settings > Branches
- Edit the existing
main protection rule
- Under "Require a pull request before merging", set Required number of approvals to at least 1
- Enable Dismiss stale pull request approvals when new commits are pushed
- Save changes
References
Problem
Branch protection is enabled on
main, but the current policy is minimal and does not enforce meaningful review gates:This effectively allows direct merges without review.
Recommended Changes
Update the branch protection rule on
mainto include:How To Update
mainprotection ruleReferences