Skip to content

docs(#73): protect-main covers both branches (one ruleset, literal refs)#78

Merged
DocGerd merged 1 commit into
developfrom
chore/73-docsync-ruleset
Jul 17, 2026
Merged

docs(#73): protect-main covers both branches (one ruleset, literal refs)#78
DocGerd merged 1 commit into
developfrom
chore/73-docsync-ruleset

Conversation

@DocGerd

@DocGerd DocGerd commented Jul 17, 2026

Copy link
Copy Markdown
Owner

What

Corrects a wording inaccuracy left by gitflow-lite Phase 1 (PR #77): the CLAUDE.md branching guidance said "both `protect-main` and the `develop` ruleset require `app`+`e2e`", implying two rulesets.

Why

Phase 2 adopted the agent-panel's unanimous best-practice design (Approach A): the single existing `protect-main` ruleset (id 19043136) was repointed in place so `conditions.ref_name.include = ["refs/heads/main", "refs/heads/develop"]` — dropping `~DEFAULT_BRANCH`. There is one ruleset covering both branches via literal refs, which structurally eliminates the default-branch-follow foot-gun (a `~DEFAULT_BRANCH` ruleset would migrate onto `develop` on the flip and strand `main`).

Verified post-flip via `gh api repos/DocGerd/sail_command/rules/branches/{main,develop}`: both branches carry all four rules (deletion, non_fast_forward, pull_request w/ thread-resolution, required_status_checks strict app+e2e).

This PR is also the first change to land against the new `develop` default — it validates the develop protection + required-check gates end-to-end.

Closes #73.

🤖 Generated with Claude Code

Corrects Phase 1 wording that implied a separate develop ruleset. gitflow-lite Phase 2 uses ONE protect-main ruleset targeting refs/heads/main + refs/heads/develop via literal refs (not ~DEFAULT_BRANCH), so both branches are protected identically and protection cannot follow a future default-branch flip.

Closes #73.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01NxREWu8gax6BnxGcW3n4mH
@DocGerd
DocGerd merged commit df92842 into develop Jul 17, 2026
5 checks passed
@DocGerd
DocGerd deleted the chore/73-docsync-ruleset branch July 17, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt gitflow-lite: protected default develop branch for WIP; main reserved for released state

1 participant