18 lines
589 B
Markdown
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
|