mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-12-03 02:03:31 +01:00
- devops-automation: remove the Kubernetes MCP server (.mcp.json in en/uk/vi) and every README mention of it; keep the deploy hooks. - Pin GitHub's MCP server image to ghcr.io/github/github-mcp-server:v2.1.0. - pre-deploy/post-deploy: detect deploys by command word (after &&, ;, |, newlines), skipping quoted strings and heredoc bodies, and allow global flags before the verb; document the limits. - post-deploy: kubectl rollout status when DEPLOY_DEPLOYMENT is set, else the pod-ready wait on DEPLOY_APP_LABEL; clear message when kubectl is missing. - pre-review: handle repos with no commits and detached HEAD; matcher accepts both pr-review:<cmd> and the bare name; hooks use exec form (args). - INDEX.md, QUICK_REFERENCE.md, README.md and concepts guides (all locales): drop deleted mcp/*.json files and use /<plugin>:<command> names. Refs #260
31 lines
579 B
JSON
31 lines
579 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node",
|
|
"args": ["${CLAUDE_PLUGIN_ROOT}/hooks/pre-deploy.js"],
|
|
"timeout": 60
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node",
|
|
"args": ["${CLAUDE_PLUGIN_ROOT}/hooks/post-deploy.js"],
|
|
"timeout": 180
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|