xanarch-td/tools/BRANCH_PROTECTION.md
2026-06-03 21:53:16 -04:00

18 lines
589 B
Markdown

# Branch Protection Setup
Forgejo doesn't support branch protection via API in all versions.
Set these manually at: **Repo → Settings → Branches → Add Rule**
## `main`
- [x] Protect this branch
- [x] Require pull request before merging
- [x] Required approvals: 1
- [x] Require status checks to pass: `validate-data`, `unit-tests`
- [x] Dismiss stale reviews on new commits
- [ ] Allow force push: NO
## `develop`
- [x] Protect this branch
- [x] Require status checks to pass: `validate-data`
- [ ] Required approvals: 0 (optional — enable for teams)
- [ ] Allow force push: NO