You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/.githooks/pre-push

15 lines
449 B

#!/bin/sh
# Pre-push hook: runs linting via Docker before pushing to GitHub.
# Ensures Rubocop, ERBLint, and ESLint pass locally.
# Skip with: git push --no-verify
#
# Enable this hook: git config core.hooksPath .githooks
set -e
echo "🔍 Running lint checks before push..."
docker compose -f docker-compose.ci.yml build lint --quiet 2>/dev/null
docker compose -f docker-compose.ci.yml run --rm --no-deps lint
echo "✅ All lint checks passed."