Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 17:57:39 +08:00
commit 02e22b6e13
13 changed files with 1024 additions and 0 deletions

31
hooks/hooks.json Normal file
View 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"
}
]
}
]
}
}