Files
proxmox-infra/.claude/settings.json
kavren b9f73eb1c7 Add Claude Code hooks for auto-commit on session end
- Automatically commits and pushes changes when Claude Code session ends
- Only triggers if there are uncommitted changes
- Includes timestamp in commit message

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-07 22:16:48 -05:00

11 lines
368 B
JSON

{
"hooks": {
"stop": [
{
"matcher": "",
"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"
}
]
}
}