Files
2025-11-29 17:57:42 +08:00

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"
}
]
}
]
}
}