Initial commit
This commit is contained in:
31
hooks/hooks.json
Normal file
31
hooks/hooks.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user