32 lines
831 B
JSON
32 lines
831 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Bash.*git commit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/commit-message-validator.py",
|
|
"description": "Validate commit messages"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/auto-changelog-updater.py",
|
|
"description": "Update changelog automatically"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash.*git push",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/prevent-direct-push.py",
|
|
"description": "Prevent direct pushes to protected branches"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|