chore(hook): main = PR-only 강제 + rawCmd 참조 버그 fix#21
Merged
Conversation
- main 브랜치에서 git commit/push/merge/rebase/cherry-pick 차단 - ALLOW_MAIN envOverride 제거 (하네스 env 미전파로 죽은 스위치였음) - rawCmd 참조 버그 수정 (origin/main에서 cmd로 rename되어 ReferenceError 발생하던 cd-prefix 판정 경로) - reset --hard, branch -D를 main-only로 축소 (feature branch 복구 허용) - push --force에 force-with-lease 부정 lookahead (대안 허용) - docs/mainPrOnlyPolicy.md: 허용/금지 매트릭스 + 워크플로우 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
최근 세션에서 드러난 3개 모순:
해결: main을 완전 read-only + PR-only 상태로 격리. 머지도 worktree에서.
Supersedes
Test plan
🤖 Generated with Claude Code