From 3c46c7c48af5b161399da49204a9c9922a7ec095 Mon Sep 17 00:00:00 2001 From: Chris Woolum Date: Sun, 12 Apr 2026 11:20:47 -0700 Subject: [PATCH] feat: automatically build graph for new worktree --- hooks/hooks.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hooks/hooks.json b/hooks/hooks.json index 48d3428a..ec40d02b 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -11,6 +11,15 @@ } ], "PostToolUse": [ + { + "matcher": "EnterWorktree", + "hooks": [ + { + "type": "command", + "command": "code-review-graph build >/dev/null 2>&1 &" + } + ] + }, { "matcher": "Write|Edit|Bash", "hooks": [