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

589 B

Branch Protection Setup

Forgejo doesn't support branch protection via API in all versions. Set these manually at: Repo → Settings → Branches → Add Rule

main

  • Protect this branch
  • Require pull request before merging
  • Required approvals: 1
  • Require status checks to pass: validate-data, unit-tests
  • Dismiss stale reviews on new commits
  • Allow force push: NO

develop

  • Protect this branch
  • Require status checks to pass: validate-data
  • Required approvals: 0 (optional — enable for teams)
  • Allow force push: NO