CafeLabs AutoCommit
A VSCode extension that automatically commits your Git changes based on customizable timing settings.
Features
- 🕐 Scheduled Commits: Set a specific time for daily automatic commits
- 🔄 Interval Commits: Configure recurring intervals for automatic commits
- ⚡ Manual Control: Enable/disable AutoCommit and trigger manual commits
- 🎯 Smart Detection: Only commits when there are actual changes
- 📊 Git Integration: Seamlessly works with your existing Git workflow
Installation
From VSIX Package
- Download the
.vsix file
- Open VSCode
- Go to Extensions view (
Ctrl+Shift+X )
- Click the
... menu and select "Install from VSIX..."
- Select the downloaded
.vsix file
From Source
- Clone this repository
- Run
npm install to install dependencies
- Run
npm run compile to build the extension
- Press
F5 to open a new Extension Development Host window
Usage
- Open the AutoCommit Panel: Look for the Git commit icon in the left sidebar
- Configure Settings:
- Scheduled Commit: Enable and set hour:minute:second for daily commits
- Interval Commit: Enable and set hours:minutes:seconds for recurring commits
- Enable AutoCommit: Click the "Enable AutoCommit" button
- Monitor: The extension will automatically commit changes based on your settings
Settings
The extension provides the following configuration options:
autocommit.scheduledEnabled : Enable/disable scheduled commits
autocommit.scheduledHour : Hour for scheduled commit (0-23)
autocommit.scheduledMinute : Minute for scheduled commit (0-59)
autocommit.scheduledSecond : Second for scheduled commit (0-59)
autocommit.intervalEnabled : Enable/disable interval commits
autocommit.intervalHours : Hours for interval commits
autocommit.intervalMinutes : Minutes for interval commits
autocommit.intervalSeconds : Seconds for interval commits
Commands
autocommit.enable : Enable AutoCommit
autocommit.disable : Disable AutoCommit
autocommit.manualCommit : Trigger a manual commit
Requirements
- VSCode 1.74.0 or higher
- Git repository in your workspace
- Node.js for development
Development
Building
npm install
npm run compile
Testing
Run the test script to set up a test environment:
node test-script.js
Open the test-project folder in VSCode
Install the extension and test the functionality
Packaging
npm install -g vsce
vsce package
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
MIT License - see LICENSE file for details
Changelog
1.0.0
- Initial release
- Scheduled and interval commit functionality
- Webview-based settings interface
- Git integration with change detection
| |