docs(agents): main is protected, and correct the pending-status claim #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs-branch-protection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Documentation only, and this PR is the acceptance test for the branch protection armed on
maina few minutes ago: one real pull request merging under the new flags.The rule:
enable_push=false,apply_to_admins=true,enable_status_check=true,status_check_contexts=["CI / cargo*"],required_approvals=0.Verified by pushing at it rather than by reading it back. A rule read from the server says it was stored, not that it bites. Probe branch, no rule, first push accepted; rule armed; second push:
Probe rule and probe branch deleted,
git ls-remoteshows onlymain,betaand#19's branch. Then the same against the armedmain:pre-receive hook declined, exit 1.CI / dockeris excluded on purpose and the reason is in the file, because the rule shows what is required and nothing shows why something is not, and the next person tidying up adds it back.And it corrects my own entry from earlier tonight. I wrote that a dependency-blocked status stays
pendingindefinitely. It does not. Measured on287a005c:cargofailed at15:26:25Z,dockerstayedpendingfor 34 minutes and resolved tofailureat16:00:54Z, having never been scheduled. Long enough to be indistinguishable from a queued job, which is what cost the fifty minutes, and not permanent.