Let’s Green Your GitHub

Phuong
3 min readMar 14, 2021

Today we gonna talk about our contribution graph hehe. GitHub profile really does matter right? It stores all your works, your contributions, your techy life. It truly is your IT home. And yeah stuff in your house does reflect who you are. The contribution graph is one of them, it can amaze recruiters and other developers how hard-working you are. So people usually want a nice and tidy GitHub with a fancy contribution graph, they come up with a lot of stuff just to keep them keen on committing like 100 days coding challenge, daily commit routine, … But you’re not into stuff like that. You are that kind of guy who is too busy to commit daily or your company, your team simply doesn’t use GitHub as a main work resource manager. Or even worst, you are likely to push a giant commit that holds the whole feature than a teeny tiny commit but still want a green graph. Then, this article is perfect for you. Let’s plant some commits to green your GitHub forest.

1. Automatically A Commit A Day

Ok, so you want less cheating but still manage to commit every day? A simple script and Heroku will serve your purpose.

First, create a private repo to store your commits.

Remember to change your contribution setting (in the Overview tab) to Private contributions to show your private commit and cheat commit without being detected.

Now, create a Heroku app.

Go to your terminal, clone my script repo github.com/phuwn/a-commit-a-day. And in my repository, log in to your Heroku account and set up your app configuration like below.

Check your config at Setting > Config Vars

To set up a scheduler that commits for you daily.

  • On Terminal, go to my repository and install add-on Scheduler with heroku addons:create scheduler:standard
  • Set up the Schedule Job
  • Check your app status with heroku log --tails

And now you’ll have A commit a day.

2. Spray your Contribution Graph with GitHub Spray

Annihil/github-spray is a CLI tool written in NodeJS that could help you transform your contribution graph into some fancy artwork.

All you need to do is

  • Install the tool npm i -g github-spray
  • Design your message. Ex:github-spray -t "Hello World"
  • You can even draw out your own message using the Spray Generator

So cool right? Try them out and show me your new GitHub graph hehe.

Reference

--

--