mirror of
https://github.com/Radarr/Radarr
synced 2026-01-22 07:24:23 +01:00
- Add pre-commit hook for JS/TS and CSS lint checks - Add setup script to install hooks - Add coverage reporting to CI workflow - Add coverage threshold warning (60%) - Update CONTRIBUTING.md with hooks setup instructions
18 lines
540 B
Bash
Executable file
18 lines
540 B
Bash
Executable file
#!/bin/bash
|
|
# Install git hooks for Aletheia development
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
HOOKS_DIR="$SCRIPT_DIR/../.git/hooks"
|
|
|
|
echo "Installing git hooks..."
|
|
|
|
if [ -f "$HOOKS_DIR/pre-commit" ]; then
|
|
echo "Backing up existing pre-commit hook..."
|
|
mv "$HOOKS_DIR/pre-commit" "$HOOKS_DIR/pre-commit.backup"
|
|
fi
|
|
|
|
cp "$SCRIPT_DIR/pre-commit" "$HOOKS_DIR/pre-commit"
|
|
chmod +x "$HOOKS_DIR/pre-commit"
|
|
|
|
echo "Git hooks installed successfully."
|
|
echo "Run 'yarn install' to ensure lint dependencies are available."
|