From 0acd42ea659d6b16b7719f9f12b9407ef472726c Mon Sep 17 00:00:00 2001 From: lmiranda Date: Wed, 28 Jan 2026 21:24:52 -0500 Subject: [PATCH] fix(git-flow): use array format for hooks.json Changed from nested object format to array format to fix "PreToolUse:Bash hook error" with no message. Co-Authored-By: Claude Opus 4.5 --- plugins/git-flow/hooks/hooks.json | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/plugins/git-flow/hooks/hooks.json b/plugins/git-flow/hooks/hooks.json index 7860e41..81c4f4b 100644 --- a/plugins/git-flow/hooks/hooks.json +++ b/plugins/git-flow/hooks/hooks.json @@ -1,19 +1,16 @@ { - "hooks": { - "PreToolUse": [ - { - "matcher": "Bash", - "hooks": [ - { - "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/branch-check.sh" - }, - { - "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/commit-msg-check.sh" - } - ] - } - ] - } + "hooks": [ + { + "event": "PreToolUse", + "matcher": "Bash", + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/branch-check.sh" + }, + { + "event": "PreToolUse", + "matcher": "Bash", + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/commit-msg-check.sh" + } + ] }