commit 과 push test
This commit is contained in:
10
.claude/hooks/aptabase-commit.sh
Normal file
10
.claude/hooks/aptabase-commit.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# PostToolUse(Bash) / git post-commit 훅: git HEAD 가 바뀌었으면 누적 토큰을 Aptabase 로 flush.
|
||||
# 실패해도 Claude 흐름을 차단하지 않는다.
|
||||
set -uo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
# __pycache__ 생성 방지 (import 시 .pyc 파일이 hooks 폴더에 생기는 것 방지)
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
cat | python3 "$SCRIPT_DIR/aptabase-commit.py" 2>/dev/null || true
|
||||
exit 0
|
||||
Reference in New Issue
Block a user