refactor: centralize repository hook implementations - #30
Merged
Conversation
added 2 commits
April 21, 2026 15:00
Move canonical git and Claude hook logic into scripts/hooks while keeping .githooks, scripts/git-hooks, and .harness/hooks as stable wrapper entrypoints. Add focused regression coverage for the new hook layout and wrapper delegation.
pko89403
force-pushed
the
codex/git-hook-refactor
branch
from
April 21, 2026 06:01
404b362 to
23a58ce
Compare
Update existing harness and execute tests to read canonical scripts for implementation assertions while keeping wrapper entrypoints under .harness/hooks.
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.
한 줄 요약
scripts/hooks/로 통합하고 기존 진입점은 wrapper로 유지하도록 바꿉니다.배경 / 문제
scripts/git-hooks/, Claude/Codex hook 구현은.harness/hooks/에 흩어져 있었습니다.git호출이 깨질 수 있는 특이점이 있습니다.scripts/hooks/로 모으기.githooks/,scripts/git-hooks/,.harness/hooks/는 stable entrypoint wrapper로 유지하기PR 대시보드
main변경 묶음별 리뷰 가이드
scripts/hooks/common.sh로 git context fallback을 공유common.sh를 어떻게 쓰는지 보기.githooks/,scripts/git-hooks/,.harness/hooks/scripts/hooks/*.sh만 호출하는지 보기.harness/README.mdtests/test_git_hook_scripts.py,tests/test_graphify_auto_refresh.py,tests/test_hook_runtime_layout.pyBefore / After
Before
scripts/git-hooks/와.harness/hooks/로 나뉘어 있었습니다.After
scripts/hooks/하나로 통합되었습니다..githooks/,scripts/git-hooks/,.harness/hooks/는 stable wrapper entrypoint로 유지됩니다.scripts/hooks/common.sh가 repo-root 및 git worktree fallback을 공용으로 처리합니다.검증
uv run pytest tests/test_git_hook_scripts.py tests/test_graphify_auto_refresh.py tests/test_hook_runtime_layout.pyuv run ruff format tests/test_hook_runtime_layout.py남은 리스크 / 후속 작업
.harness/reference/local-adaptation.md의 남은 hook 관련 문구를 별도 문서 정리 PR에서 정돈tests/test_graphify_harness.py에 섞여 있는 다른 주제 변경을 별도 PR로 분리scripts/hooks/graphify-auto-refresh.sh의 bare-worktree fallback이 기존 동작을 유지하는지