furtka/ops/forgejo/branch-protection.json
Daniel Maksymilian Syrnicki 9bfbf209b6
All checks were successful
Build ISO / build-iso (push) Successful in 17m6s
CI / lint (push) Successful in 27s
CI / test (push) Successful in 35s
CI / validate-json (push) Successful in 22s
CI / markdown-links (push) Successful in 14s
ops(forgejo): whitelist owner in branch protection push rule
Earlier config was enable_push=false + apply_to_admins=false, which I
expected to let the repo owner push directly. Empirically it blocked
owner pushes too — apply_to_admins governs approval-rule bypass, not
push-rule bypass. Switch to enable_push=true with enable_push_whitelist
and a single entry so the owner has explicit, auditable direct-push
access while casual commits still can't land without being whitelisted
or going through a PR.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:02:25 +02:00

15 lines
365 B
JSON

{
"enable_push": true,
"enable_push_whitelist": true,
"push_whitelist_usernames": ["daniel"],
"enable_status_check": true,
"status_check_contexts": [
"CI / lint*",
"CI / test*",
"CI / validate-json*"
],
"required_approvals": 0,
"block_on_rejected_reviews": false,
"block_on_outdated_branch": false,
"require_signed_commits": false
}