Home

Awesome

GitHub Commit Bot

Generate Organic™ GitHub activity <br>My most insidious idea yet

<br> <p align="center"> <img width="90%" src="./the-dream.png" alt="The Contribution Dream"> </p> <br>

Once a day (if my laptop is open), <br>commit-bot adds today's line:

Commit: Wed Sep 25 22:00:00 EDT 2019

This is a Bash script <br>designed to be run locally <br>(i.e. on your machine)

<br><br>

But @theshteves, <br>I want this to run every day

Oh hush

Nobody commits every day <br>Is that what you want? <br>🚫 Sorry, not today

We're looking for a more realistic distribution of activity throughout the year

<br><br>

Getting Started

If you're on Windows™, <br>setup the Windows Subsystem for Linux

Install git if git --version errors out

<br>
  1. Open your command-line <br>& navigate to whatever folder you prefer

  2. Fork this project on GitHub

  3. Download your new copy of this project

git clone https://github.com/<your-github-username>/commit-bot.git

Don't forget to include your username

  1. Test run the script <br>in case you need to fix permissions issues
/bin/bash ./commit-bot/bot.sh
  1. Open your crontab to set a trigger
crontab -e

NOTE: <br>If this makes your screen almost blank <br>with no toolbar of keys to navigate, <br>you've probably entered the text editor Vim <br> <br>Remember, press "i" to start [i]nserting text <br> <br>When you're finished, <br>press "Esc" repeatedly until nothing happens <br> <br>Then type ":wq" to save & quit <br>or ":q!" to quit without saving

  1. Add this line to schedule every 10pm or whenever
0 22 * * * /bin/bash /<full-path-to-your-folder>/commit-bot/bot.sh

Do not forget to include the correct folder path

NOTE: <br>Make sure you save your changes <br>on your way out!

To verify your cron installation:

crontab -l

that should print the same line <br>we just saved to your crontab

Now, to celebrate, test your script 🎉

/bin/bash /<full-path-to-your-folder>/commit-bot/bot.sh