README.md: - GitHub-friendly documentation - Installation instructions - Plugin overview with commands review plugin: - /review:security - Security-focused review - /review:pr - PR review - hooks.json - Post PR create suggestion - scripts/post-pr-create.sh verify plugin: - /verify:ready - Quick readiness check - /verify:tests - Test verification - hooks.json - Pre-push warning - scripts/pre-push-check.sh qa plugin: - /qa:check - Report only, no fixes - /qa:lint - Lint with fix option - hooks.json - QA output filtering ci plugin: - /ci:status - CI status display - /ci:run - Trigger workflows - /ci:fix - Analyse and fix failures - hooks.json - Post-push CI hint - scripts/post-push-ci.sh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
553 B
Bash
Executable file
21 lines
553 B
Bash
Executable file
#!/bin/bash
|
|
# Remind about verification before push
|
|
|
|
read -r input
|
|
|
|
# Check if tests were run recently (within last 5 minutes)
|
|
LAST_TEST=$(find . -name "*.test" -mmin -5 2>/dev/null | head -1)
|
|
LAST_COVERAGE=$(find . -name "coverage.*" -mmin -5 2>/dev/null | head -1)
|
|
|
|
if [ -z "$LAST_TEST" ] && [ -z "$LAST_COVERAGE" ]; then
|
|
cat << 'EOF'
|
|
{
|
|
"hookSpecificOutput": {
|
|
"hookEventName": "PreToolUse",
|
|
"additionalContext": "⚠️ No recent test run detected. Consider running `/verify:verify` before pushing."
|
|
}
|
|
}
|
|
EOF
|
|
else
|
|
echo "$input"
|
|
fi
|