plugins/codex/verify/scripts/pre-push-check.sh
Snider 466fe9f5a6 feat(codex): mirror claude plugins and ethics modal
Summary:\n- added Codex marketplace registry plus awareness/ethics/guardrails sub-plugins\n- mirrored Claude plugin commands/scripts/hooks into codex api/ci/code/collect/coolify/core/issue/perf/qa/review/verify\n- embedded Axioms of Life ethics modal, guardrails, and kernel files under codex/ethics\n- added Codex parity report, improvements list, and MCP integration plan\n- extended Gemini MCP tools and docs for Codex awareness
2026-02-05 20:13:01 +00:00

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