feat: make auto-approve rules toggleable #155
No reviewers
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman!155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/toggleable-autoapprove-rules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
enabledis stored in the section JSON; missing field (legacy rows) is treated as enabled, so existing rules keep working after upgrade.Testing
go test ./internal/server -run TestJudgePrompt(incl. new disabled-rule regression) — passgo test ./internal/state— passpnpm exec tsc -b,pnpm lint,pnpm test(1276 tests) — pass standaloneNote: the pre-commit hook flaked on unrelated timeout-sensitive tests (auto-approve watcher 2s context deadline, a tmux test needing a live tmux server, 3 frontend tests timing out at 5s under load); all pass when run on their own.
Coverage ratchet: ✅ pass
Tolerance: -0.1%. Baseline stored on
gh-pages.