[session 1] docs(platform.ci-cd): branch lifecycle — auto-delete vs protected develop #42

Merged
hiveiq merged 1 commits from docs/ci-cd-branch-protection into develop 2026-07-19 12:43:41 -04:00
Owner

Closes #41

Session: 1

Documents the auto-delete-on-merge trap and the 2026-07-19 develop-protection fix.

Key points: auto-delete stays ON fleet-wide (correct for feature branches); the protection rule is deliberately permissive (enable_push: true, 0 approvals, no status checks) so it restricts nothing except deletion; hiveops-deploy excluded as archived (423); the guard is by-name, so other long-lived integration branches used as PR heads are still exposed.

Includes a before/after table and the curl to apply it elsewhere.

Closes #41 Session: 1 Documents the auto-delete-on-merge trap and the 2026-07-19 develop-protection fix. Key points: auto-delete stays ON fleet-wide (correct for feature branches); the protection rule is deliberately permissive (`enable_push: true`, 0 approvals, no status checks) so it restricts nothing except deletion; hiveops-deploy excluded as archived (423); the guard is by-name, so other long-lived integration branches used as PR heads are still exposed. Includes a before/after table and the curl to apply it elsewhere.
hiveiq added 1 commit 2026-07-19 12:43:01 -04:00
Auto-delete-head-branch-on-merge is on fleet-wide and is correct for
feature branches, but on a develop->main release PR the head IS develop,
so it deleted develop itself (hit hiveops-agent twice). Documents the
2026-07-19 fix: a deliberately permissive protection rule on develop in
41/42 repos that blocks deletion and nothing else, why hiveops-deploy is
excluded, and that the guard is by-name so other integration branches
need the same treatment.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
johannes approved these changes 2026-07-19 12:43:17 -04:00
hiveiq merged commit f745e5c5d6 into develop 2026-07-19 12:43:41 -04:00
hiveiq deleted branch docs/ci-cd-branch-protection 2026-07-19 12:43:41 -04:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hiveiq-src/hiveops-guide#42