Skip to content
Shell

fix: wire up protect-main-branch hook to Edit/Write pre-tool

Eddie Belavalb33ebc151f86
diff --git a/hooks.json b/hooks.json
index cc19a8e..c5e6554 100644
--- a/hooks.json
+++ b/hooks.json
@@ -38,6 +38,12 @@
"~/.claude/hooks/pipeline/session-start-briefing.sh"
],
"pre-tool": {
+ "Edit": [
+ "~/.claude/hooks/protect-main-branch.sh"
+ ],
+ "Write": [
+ "~/.claude/hooks/protect-main-branch.sh"
+ ],
"Bash": [
"~/.claude/hooks/agentic/pev-verification.sh"
],