docs: document main's branch protection rules in CONTRIBUTING.md #180

Merged
rootiest merged 1 commits from docs/branch-protection-rules into main 2026-09-25 02:57:46 +00:00
Owner

Summary

  • Adds a "Branch protection on main" subsection under Branching & Pull
    Requests
    documenting the Gitea
    server-side rules currently configured on main: push allowlist
    (fishconfig-bot + repo owner only), force-push disabled, signed commits
    required, CI / test (pull_request) required status check, block-merge on
    rejected reviews, block-merge if the PR is behind main, and the owner's
    bypass allowlist.
  • Prompted by today's CI outage: the docs job's auto-commit step was
    rejected by branch protection (enable_push was off with no whitelist)
    for three merges in a row before the push allowlist was corrected in the
    Gitea UI. Writing these rules down so the next person configuring
    protection settings (or debugging a rejected push) doesn't have to
    re-derive them from a failed CI run.

Verification

  • Docs-only change, no code touched — fish tests/run-tests.fish not
    required.
  • Reviewed rendered markdown by eye for broken anchors/links.
## Summary - Adds a "Branch protection on `main`" subsection under [Branching & Pull Requests](CONTRIBUTING.md#branching--pull-requests) documenting the Gitea server-side rules currently configured on `main`: push allowlist (`fishconfig-bot` + repo owner only), force-push disabled, signed commits required, `CI / test (pull_request)` required status check, block-merge on rejected reviews, block-merge if the PR is behind `main`, and the owner's bypass allowlist. - Prompted by today's CI outage: the `docs` job's auto-commit step was rejected by branch protection (`enable_push` was off with no whitelist) for three merges in a row before the push allowlist was corrected in the Gitea UI. Writing these rules down so the next person configuring protection settings (or debugging a rejected push) doesn't have to re-derive them from a failed CI run. ## Verification - [x] Docs-only change, no code touched — `fish tests/run-tests.fish` not required. - [x] Reviewed rendered markdown by eye for broken anchors/links.
rootiest added the Kind/DocumentationArea/Docs labels 2026-09-25 02:53:36 +00:00
rootiest added 1 commit 2026-09-25 02:53:42 +00:00
docs: document main's branch protection rules in CONTRIBUTING.md
CI / test (pull_request) Successful in 18s
CI / github-mirror (pull_request) Skipped
CI / docs (pull_request) Successful in 1m21s
c82132aed0
rootiest self-assigned this 2026-09-25 02:55:44 +00:00
rootiest merged commit aa617ef455 into main 2026-09-25 02:57:46 +00:00
rootiest deleted branch docs/branch-protection-rules 2026-09-25 02:57:48 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rootiest/fish-config#180