fix: Update hooks config to new format

Changed hook event name from 'stop' to 'Stop' and restructured
to use the new matcher/hooks array format required by Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-18 09:43:23 -05:00
parent 18b4eb9bb6
commit eb4a9b3d2b

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"stop": [ "Stop": [
{ {
"matcher": "", "matcher": {},
"hooks": [
{
"type": "command",
"command": "if git -C /home/kavren/proxmox-infra status --porcelain | grep -q .; then git -C /home/kavren/proxmox-infra add -A && git -C /home/kavren/proxmox-infra commit -m \"Auto-commit: $(date '+%Y-%m-%d %H:%M') session changes\" && git -C /home/kavren/proxmox-infra push; fi" "command": "if git -C /home/kavren/proxmox-infra status --porcelain | grep -q .; then git -C /home/kavren/proxmox-infra add -A && git -C /home/kavren/proxmox-infra commit -m \"Auto-commit: $(date '+%Y-%m-%d %H:%M') session changes\" && git -C /home/kavren/proxmox-infra push; fi"
} }
] ]
} }
]
}
} }