furtka/ops/forgejo
Daniel Maksymilian Syrnicki 0f5e6bb950 ops(forgejo): apply-branch-protection script + main-branch rule
Codifies the branch protection applied to main on 2026-04-16: no
direct pushes, required checks = CI / {lint,test,validate-json}*,
zero approvals (2-person team), admin bypass left on for emergencies.

Script is idempotent (create-or-patch) and reads its token from
\$FORGEJO_TOKEN or the local git remote URL as a fallback, so a
clean re-run just reconciles the rule with branch-protection.json.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 12:02:10 +02:00
..
apply-branch-protection.sh ops(forgejo): apply-branch-protection script + main-branch rule 2026-04-16 12:02:10 +02:00
branch-protection.json ops(forgejo): apply-branch-protection script + main-branch rule 2026-04-16 12:02:10 +02:00