Files
gh-yebot-rad-cc-plugins-plu…/hooks/hooks.json
2025-11-30 09:07:55 +08:00

39 lines
1.4 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"hooks": {
"tool-use-warn-gh-direct": {
"event": "tool-use",
"filter": "Bash(gh issue create*)|Bash(gh issue edit*)|Bash(gh issue close*)",
"command": "bash",
"args": [
"-c",
"echo ' TIP: Use /gh-create-issue or /gh-close-issue commands for guided workflows'"
]
},
"tool-use-validate-priority": {
"event": "tool-use",
"filter": "Bash(gh issue create*)|Bash(gh issue edit*)",
"command": "bash",
"args": [
"-c",
"echo '⚠️ REMINDER: Did you assign a priority label (P1/P2/P3)?'"
]
},
"user-prompt-submit-bug-mention": {
"event": "user-prompt-submit",
"command": "bash",
"args": [
"-c",
"if echo \"$PROMPT\" | grep -qiE '(bug|broken|not working|error|issue)'; then echo ' Consider creating a GitHub issue:'; echo ' Use /gh-create-issue for guided workflow'; echo ' Or: gh issue create --title \"...\" --body \"...\" --label P1'; fi"
]
},
"user-prompt-submit-fixed-mention": {
"event": "user-prompt-submit",
"command": "bash",
"args": [
"-c",
"if echo \"$PROMPT\" | grep -qiE '(fixed|resolved|completed|done with).*(issue|#[0-9]+)'; then echo ' Remember to close the related GitHub issue:'; echo ' Use /gh-close-issue for guided workflow'; echo ' Or: gh issue close <number> --comment \"...\\n\\n-cc\"'; fi"
]
}
}
}