Skip to content

A shell script that automatically commits and pushes changes to your GitHub repo using cron scheduling, saving you the hassle of manual commits. Perfect for keeping repos up-to-date without interrupting workflow.

License

Notifications You must be signed in to change notification settings

luyangliuable/effective-octo-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Effective Octo Lamp: Autocommiter Tool

Table of Contents

Welcome to the Effective Octo Lamp, a powerful and efficient autocommiter tool that makes managing your GitHub repos a breeze. This shell script utilizes the power of cron to automatically commit and push any changes made in your repo to GitHub, saving you the hassle of having to manually commit and push your changes.

With this tool, you can set up a schedule for committing your changes, so you can choose how often you want your changes to be committed. This means you can focus on writing code, and let the script handle the tedious task of committing and pushing your changes for you. This is especially useful for developers who want to keep their repos up-to-date without interrupting their workflow.

Disclaimer

  • Data of all code may get stored if you choose to this tool. Please make sure with organisation if this is allowed.
  • Not responsible for issues caused inside git.

How To Use

  • Add your openai token. I didn't include one because I don't want to go bankrupt.
    • Or add it inside your .bashrc or .zshrc
export OPENAI_API_KEY=adjasldnasdkjnasdojqwno
  • Add to your personal git repo
git submodule add https://github.com/luyangliuable/effective-octo-lamp.git auto-commit
  • Use cron -e or crontab -e depending on mac os linux.

  • Add the follow line which checks every 30 minutes for enough changes to commit

*/30 * * * * cd $PATH_TO_FOLDER && $PATH_TO_FOLDER/auto-commit/auto-commit.sh
  • Changes will automatically be pushed upstream to default branch

Change Number of Lines Changes Triggering A Commit and Push

  • In code replace:
LINES_TRIGGER=0

With the number of changes lines of code.

Roadmap

  • Use chatgpt to generate commit messages (when api releases)
  • Allow user to customise which folder to watch (ignore feature)
  • Allow user to review push/commit actions

About

A shell script that automatically commits and pushes changes to your GitHub repo using cron scheduling, saving you the hassle of manual commits. Perfect for keeping repos up-to-date without interrupting workflow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages