mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
- Renamed scripts/pre-push to scripts/pre-commit - Updated install-hooks.sh to install pre-commit hook - Hook now runs formatting, type checking, and tests before commit
13 lines
261 B
Bash
Executable File
13 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Install git hooks
|
|
echo "Installing git hooks..."
|
|
|
|
# Make sure hooks directory exists
|
|
mkdir -p .git/hooks
|
|
|
|
# Install pre-commit hook
|
|
cp scripts/pre-commit .git/hooks/pre-commit
|
|
chmod +x .git/hooks/pre-commit
|
|
|
|
echo "Git hooks installed successfully!" |