18 lines
431 B
JSON
18 lines
431 B
JSON
|
|
{
|
||
|
|
"$schema": "https://claude.ai/schemas/hooks.json",
|
||
|
|
"hooks": {
|
||
|
|
"PreToolUse": [
|
||
|
|
{
|
||
|
|
"matcher": "tool == \"Bash\" && tool_input.command matches \"^git push\"",
|
||
|
|
"hooks": [
|
||
|
|
{
|
||
|
|
"type": "command",
|
||
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/pre-push-check.sh"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"description": "Warn about unpushed verification before git push"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|