@ajayvellayapan/commit-bot
v1.0.0
Published
A CLI tool to auto-commit and push changes on a schedule
Downloads
11
Readme
Commit Bot
Commit Bot is a CLI tool that automatically commits and pushes changes on the current working branch at a set time interval.
Features
- Auto-commits and pushes any local changes
- Runs silently in the background with PM2
- Works on the current branch
Installation
npm install -g commit-botUsage
Step 1: Initialize in a Git repo
cd your-project
commit-bot initYou'll be prompted to set the commit interval in minutes (e.g. 30).
Step 2: Start the bot
commit-bot startThis starts a background process that checks for changes and auto-commits + pushes them every X minutes.
Step 3: Check status
commit-bot statusShows if the bot is running and when the last auto-commit occurred.
Step 4: Stop the bot
commit-bot stopStops the background sync process.
Configuration
Stored in .commit-bot/config.json (not tracked by Git):
{
"interval": "30"
}Also writes a timestamp to .commit-bot/last-run.log.
Requirements
- Node.js v16+
- PM2 globally installed:
npm install -g pm2
License
MIT
