clawdie-ai/hooks/pre-commit
Sam & Claude 04cdb5250e fix: consolidate hooks into hooks/, update AGENTS.md
Move pre-commit hook from .githooks/ to hooks/ alongside existing
prepare-commit-msg. Fix install-hooks script to use `hooks` path.

AGENTS.md: document pre-commit hook (README version sync), fix stale
"16 steps" → 20 steps in Install Orchestrator section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  414 passed | 10 skipped (424)
2026-03-16 08:10:18 +00:00

10 lines
362 B
Bash
Executable file

#!/bin/sh
# Auto-update README Current Release version from package.json
VERSION=$(node -e "process.stdout.write(require('./package.json').version)")
if [ -z "$VERSION" ]; then exit 0; fi
# Replace the backtick version line under ## Current Release
sed -i '' "s/^\`v[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[^\`]*\`$/\`v${VERSION}\`/" README.md
git add README.md