right now when using the auto-commit strategy we block this when on default branch,…
- User
right now when using the auto-commit strategy we block this when on default branch, let's remove this restriction
Assistant
I'll help you remove the restriction that blocks the auto-commit strategy on the default branch. Let me first find where this restriction is implemented.
Assistant
Now I understand the changes needed. Let me create a todo list to track this work.
Assistant
Perfect! I've successfully removed the restriction that blocked using the auto-commit strategy on the default branch. Here's what I changed:
Changes Made
-
Updated
auto_commit.go:105-108- ChangedAllowsMainBranch()to returntrueinstead offalse, with updated comments explaining that the strategy creates clean commits with minimal trailers. -
Updated
default_branch_test.go:11-21- Modified the integration test helper functions:strategiesBlockingMain()now returns an empty list since no strategies are blockedstrategiesAllowingMain()now includes bothmanual-commitandauto-commit
-
Updated
CLAUDE.md:187- Changed documentation to reflect thatAllowsMainBranch() = truefor the auto-commit strategy.
Test Results
- Unit tests: ✓ All pass
- Integration tests: ✓ All pass
- Linter: ✓ No issues
The auto-commit strategy can now be used on the main/master branch without restrictions. The strategy creates clean commits with only the trailer, while all detailed metadata is stored on the separate orphan branch.
-