Converge default_delete_branch_after_merge, which is on for one repo and off for the rest #807
Labels
No labels
burndown-2026-06
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure#807
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Observed
Why it matters
Where it is off, a merged branch survives. Pushing more commits to that branch
afterwards succeeds silently, fast-forwards the branch, and lands the work
nowhere: no PR points at it and nothing reports the orphan. The commits look
pushed and are not going anywhere.
Where it is on, the branch is gone after merge, so the same mistake reports
* [new branch]in push output instead of a fast-forward. That is not a hardfailure, but it is a visible difference at the moment the mistake is made, and
it costs nothing.
Scope
scripts/forgejo-branch-protection.pyalready walks every active repo acrossthe owned orgs and converges branch protection with a diff-and-apply shape.
It does not touch repo-level settings:
grep -c "delete_branch"returns 0.The
forgejo-adminskill describes its remit as "branch protection and repoPR/merge settings", so repo settings are in the intended scope and simply
have no implementation yet. Extending that script is the natural home rather
than a second tool.
Note
This is the cheap floor, not the real guard. Failing loud on a push to a
merged branch needs a pre-push hook, tracked separately in
coilyco-flight-deck/agentic-os#1034.