release: v1.6.1 develop → main 동기화 #15
@ -59,6 +59,13 @@ curl -sf "${GITEA_URL}/gc/template-react-ts/raw/branch/develop/.editorconfig"
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### 4-2. settings.json (부분 갱신)
|
#### 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 등 팀 공통 환경변수)
|
- `env`: 글로벌 최신으로 교체 (CLAUDE_BOT_TOKEN 등 팀 공통 환경변수)
|
||||||
- `deny` 목록: 글로벌 최신으로 교체
|
- `deny` 목록: 글로벌 최신으로 교체
|
||||||
- `allow` 목록: 기존 사용자 커스텀 유지 + 글로벌 기본값 병합
|
- `allow` 목록: 기존 사용자 커스텀 유지 + 글로벌 기본값 병합
|
||||||
@ -80,6 +87,13 @@ curl -sf "${GITEA_URL}/gc/template-react-ts/raw/branch/develop/.editorconfig"
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### 4-4. Git Hooks (덮어쓰기 + 실행 권한)
|
#### 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
|
```bash
|
||||||
chmod +x .githooks/*
|
chmod +x .githooks/*
|
||||||
```
|
```
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user