Skip to content

ci: guard main against refactor/mini merges - #16

Merged
ahaodev merged 1 commit into
mainfrom
chore/main-branch-guard
Dec 3, 2026
Merged

ahaodev merged 1 commit into
mainfrom
chore/main-branch-guard

Conversation

@ahaodev

@ahaodev ahaodev commented Dec 3, 2026

Copy link
Copy Markdown
Owner

refactor/mini receives changes from main; the reverse direction must never happen. GitHub has no native source-branch restriction, so this adds a main-direction-guard check that fails any pull request whose head branch is refactor/mini.

After this merges, the existing main ruleset will be enabled with this check as a required status check.

🤖 Generated with Claude Code

refactor/mini only receives changes from main. Fail its pull
requests into main so the direction cannot be reversed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ahaodev
ahaodev merged commit 6a39e44 into main Dec 3, 2026
2 checks passed
@ahaodev
ahaodev deleted the chore/main-branch-guard branch December 3, 2026 13:15
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.

1 participant