GithubHelp home page GithubHelp logo

theshteves / commit-bot Goto Github PK

View Code? Open in Web Editor NEW
110.0 6.0 108.0 468 KB

Automatically generates GitHub activity

License: MIT License

Shell 100.00%
shell bash commit bot automation crontab hacktoberfest contribution-graph contributions-graph contribution

commit-bot's Introduction

GitHub Commit Bot

Generate Organic™ GitHub activity
My most insidious idea yet


The Contribution Dream


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

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

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



But @theshteves,
I want this to run every day

Oh hush

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

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



Getting Started

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

Install git if git --version errors out


  1. Open your command-line
    & 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
    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:
If this makes your screen almost blank
with no toolbar of keys to navigate,
you've probably entered the text editor Vim

Remember, press "i" to start [i]nserting text

When you're finished,
press "Esc" repeatedly until nothing happens

Then type ":wq" to save & quit
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:
Make sure you save your changes
on your way out!

To verify your cron installation:

crontab -l

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

Now, to celebrate, test your script 🎉

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

commit-bot's People

Contributors

elevenspins avatar justarchi avatar lx5321 avatar theshteves avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

commit-bot's Issues

Create Arbitrary Words on GitHub Activity Page

This script should be able to write words on my GitHub activity history page. Words like HACK or my username. This can be achieved by differing the amount of commit activity per day to get differently shaded boxes.

To go a step further, this script should take into account any activity from the day and be able to throttle the number of commits to continue writing a word.

How to use this ?

What i need is to just add a space character at the end of readme file of a repo i have , so i have at least 1 contribution per day.

Is that possible with this ? Do i need to have the computer opened or it can execute somehow i can put in cloud and proxy it ?

FUN FACT: we documented a change in the date utility!

Oh wow!

Notice anything interesting between lines 375 & 380?

commit-bot/output.txt

Lines 375 to 380 in e2ef916

Commit: Mon May 8 20:00:00 PDT 2017
Commit: Wed May 10 20:00:00 PDT 2017
Commit: Thu May 11 20:00:00 PDT 2017
Commit: Fri May 12 20:00:00 PDT 2017
Commit: Sat May 13 20:00:00 PDT 2017
Commit: Thu Oct 5 16:39:31 EDT 2017

This project has been running long enough to catch a change in the MacOS date utility's formatting!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.