Branch Protection
Branch Protection
Every repo must have branch protection on main.
Required Settings
- Require pull request before merging
- Required approving reviews: 1
- Enforce admins: false (solo dev can merge own PRs)
- No force pushes
- No branch deletions
Platform-Specific
- GitHub: Set via Settings → Branches → Branch protection rules
- Forgejo: Set via Settings → Branches in the Forgejo web UI or via API