docs(agents): why master requires CI / python* and not CI / docker #9
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
waiting-on-julian
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jlxq0/listmonk-mcp!9
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?
Fork patch. Records why this repository's branch protection is shaped the way it is.
masterhad a rule that enforced nothing —enable_push: true,enable_status_check: false,contexts: null— which reads as protected in any listing and letsgit push origin masterstraight through. Worse than no rule: a reader checking whether the repo is protected sees one and stops looking.Now armed:
enable_pushfalseapply_to_adminstrueenable_status_checktruestatus_check_contexts["CI / python*"]required_approvals0CI / dockeris excluded on a measurement. A job skipped because the job itneeds:failed postssuccessto the commit status. Measured here rather than assumed, on throwaway branch commite005d4bcarrying one failing test:dockercarriesneeds: python, so requiring it builds a gate that is green precisely when the work did not happen.The glob is load-bearing: the context carries an event suffix,
(pull_request)on a PR head and(push)on a branch push, so a literal string matches one and silently never matches the other.The cost of excluding docker is in the file too. A real docker failure no longer blocks a merge, and this repository has had exactly one —
d74a768, merged withpythongreen anddockerred on the missingFORGE_PUSH_TOKEN. Requiring the skipped-reports-success context would not have caught that either.This PR is also the acceptance: it is the first merge under the new flags.