Repository navigation
v1.2.0
Added
- Persistent user preferences - Settings now persist across application restarts
ai-commit config --auto-commit [on|off]- Enable/disable automatic commit without promptsai-commit config --auto-push [on|off]- Enable/disable automatic push after committingai-commit config --show- Display current configuration settingsai-commit config --reset- Reset all settings to defaults- Settings stored using Java Preferences API (Registry on Windows, .plist on macOS, XML on Linux)
- Auto-commit mode - Skip interactive prompts and commit immediately after AI generation
- Significantly faster workflow for rapid development
- Automatically aborts if AI generation fails (no changes committed)
- Warning displayed when enabling about loss of regenerate/edit/cancel options
- Auto-push mode - Automatically push changes after committing
- Works independently with both interactive and auto-commit modes
- With auto-commit OFF: Pushes after accepting in interactive prompt (review commits, skip manual push)
- With auto-commit ON: Pushes immediately after auto-commit (full automation)
- Gracefully handles push failures (commit still succeeds)
- Configuration command system - New
configsubcommand for managing preferencesai-commit config --help- Show configuration help- Interactive and auto modes coexist - easily switch between workflows
Changed
CommitServicenow checks user preferences before deciding workflow mode- Interactive prompts only shown when auto-commit is disabled
- Help text updated to include configuration commands
- README and documentation updated with auto-commit/auto-push examples
Technical
- Added
UserPreferencesclass for persistent storage management - Updated
CommitServicewith auto-commit and auto-push logic - Added
push()method toGitServicefor git push operations - Enhanced error handling for auto-commit mode
Installation
Linux:
curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.2.0/ai-commit-linux-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/macOS:
curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.2.0/ai-commit-macos-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/Windows:
Download ai-commit-windows-amd64.exe and add to PATH.
Verification
Verify SHA256 checksums:
sha256sum -c ai-commit-*.sha256Quick Start
export OPENAI_API_KEY="sk-..."
cd your-repo
git add .
ai-commitSee README for full documentation.
Full Changelog: v1.1.1...v1.2.0