From ca39b31b8ca111f55b9d7cde62dc70bbe71292c7 Mon Sep 17 00:00:00 2001 From: htlee Date: Sun, 1 Mar 2026 18:27:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20sync-team-workflow=20settings.json=20?= =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EA=B2=BD=EB=A1=9C=20=EB=AA=85=EC=8B=9C=20?= =?UTF-8?q?+=20custom=5Fpre=5Fcommit=20=ED=94=8C=EB=9E=98=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/skills/sync-team-workflow/SKILL.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.claude/skills/sync-team-workflow/SKILL.md b/.claude/skills/sync-team-workflow/SKILL.md index 5c07617..536ad71 100644 --- a/.claude/skills/sync-team-workflow/SKILL.md +++ b/.claude/skills/sync-team-workflow/SKILL.md @@ -59,6 +59,13 @@ curl -sf "${GITEA_URL}/gc/template-react-ts/raw/branch/develop/.editorconfig" ``` #### 4-2. settings.json (부분 갱신) + +⚠️ settings.json은 **타입별 템플릿**에서 다운로드 (template-common에는 없음): +```bash +curl -sf "${GITEA_URL}/gc/template-${PROJECT_TYPE}/raw/branch/develop/.claude/settings.json" +``` + +다운로드한 최신 settings.json과 로컬 settings.json을 비교하여 부분 갱신: - `env`: 글로벌 최신으로 교체 (CLAUDE_BOT_TOKEN 등 팀 공통 환경변수) - `deny` 목록: 글로벌 최신으로 교체 - `allow` 목록: 기존 사용자 커스텀 유지 + 글로벌 기본값 병합 @@ -80,6 +87,13 @@ curl -sf "${GITEA_URL}/gc/template-react-ts/raw/branch/develop/.editorconfig" ``` #### 4-4. Git Hooks (덮어쓰기 + 실행 권한) + +`commit-msg`, `post-checkout`은 **항상 팀 표준으로 교체** (팀 커뮤니케이션 규칙 + 인프라). + +`pre-commit`은 `.claude/workflow-version.json`의 `custom_pre_commit` 플래그를 확인: +- `"custom_pre_commit": true` → pre-commit 건너뜀 (프로젝트 커스텀 유지), "⚠️ pre-commit은 프로젝트 커스텀 유지" 로그 +- 플래그 없거나 false → 팀 표준으로 교체 + ```bash chmod +x .githooks/* ```