Skip to content

Commit 6352296

Browse files
committed
docs: update README and CLAUDE.md for per-repo branch filtering and graceful shutdown
1 parent dd94e8f commit 6352296

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.claude/CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717

1818
HTTP 모드 (`--transport streamable-http`)에서는 `/health``/webhook` 엔드포인트도 제공합니다.
1919
Webhook은 `--allow-repo` 플래그로 허용 리포지토리를 설정하면 활성화됩니다.
20+
레포별 브랜치 필터링: `--allow-repo "org/api:main,develop"` (glob 패턴, 미지정 시 main/master 기본).
2021
GitHub (`X-Hub-Signature-256`) 및 Gitea (`X-Gitea-Signature`, `X-Gitea-Event`) 호환.
2122
Push 이벤트 수신 → 자동 clone/pull → 그래프 빌드 → DB 저장 파이프라인.
23+
Graceful shutdown: SIGINT/SIGTERM 시 진행 중인 clone/build에 context cancel 전파.
2224

2325
## CLI Skills (5개)
2426

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ curl http://localhost:8080/health
170170
# Webhook (GitHub / Gitea push events, when --allow-repo is configured)
171171
# POST /webhook — receives push events and triggers auto clone + build
172172
# Supports: X-Hub-Signature-256 (GitHub), X-Gitea-Signature (Gitea)
173+
# Per-repo branch filtering: --allow-repo "org/api:main,develop" (glob patterns)
174+
# Default target branches: main, master (when branch not specified)
175+
# Graceful shutdown: SIGINT/SIGTERM cancels in-progress clone/build via context
173176
```
174177
175178
Claude Code automatically connects and gets access to 28 MCP tools.
@@ -253,7 +256,7 @@ Source Code → Tree-sitter Parser → Nodes + Edges + Annotations
253256
| `ccg serve --http-addr :9090` | Custom HTTP listen address (default `:8080`) |
254257
| `ccg serve --stateless` | Stateless session mode (multi-instance deployments) |
255258
| `ccg serve --workspace-root <dir>` | Root directory for file workspaces (default `workspaces`) |
256-
| `ccg serve --allow-repo <pat>` | Allowed repo patterns for webhook sync (repeatable, e.g. `org/*`, `*/*`) |
259+
| `ccg serve --allow-repo <pat>` | Allowed repo patterns for webhook sync (repeatable, e.g. `org/*`, `org/api:main,develop`) |
257260
| `ccg serve --webhook-secret <s>` | HMAC secret for webhook signature verification (GitHub / Gitea) |
258261
| `ccg serve --repo-root <dir>` | Root directory for cloned repositories |
259262

0 commit comments

Comments
 (0)