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)
10 lines
362 B
Bash
Executable file
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
|