Files
gh-johnclyde-clydehub/hooks/hooks.json
2025-11-30 08:28:27 +08:00

25 lines
683 B
JSON

{
"PreToolUse": [
{
"name": "lint-before-commit",
"command": "echo 'Running pre-commit linting validation...'",
"description": "Validate linting before Bash commits",
"match": {
"tool": "Bash",
"pattern": "git commit"
}
}
],
"PostToolUse": [
{
"name": "verify-no-claude-attribution",
"command": "git log -1 --pretty=%B | grep -q 'Claude Code' && echo 'ERROR: Claude attribution detected in commit message!' || echo 'Commit message looks good'",
"description": "Ensure no Claude Code attribution in commits",
"match": {
"tool": "Bash",
"pattern": "git commit"
}
}
]
}