/abolish-ice

This is a shadow fork of rossabaker/abolish-ice-graphiti which I will periodically update to fix my contributions graph. See https://twitter.com/rossabaker/status/1271861605203140610 https://github.com/rossabaker/abolish-ice-graphiti :)

Primary LanguageJavaScriptCreative Commons Zero v1.0 UniversalCC0-1.0

This is a shadow fork of rossabaker/abolish-ice-graphiti

See original repo.

contents

Make your contributor graph say Abolish ICE:

Contributor Graph

Installing dependencies

Run yarn to install deps.

Usage

  1. Make any changes you want to persist between runs to the develop branch. If you commit them to main, they will get wiped the next time you reset and paint your graph!
  2. Run reset.js to reset the main branch
  3. Run paint.sh to paint your contributions graph anew

Note that even if you've never run this before, you'll need to run reset first to generate the dates for the paint script.

git checkout main
node reset.js [--verbose]
./paint.sh

Fair warning: ./paint.sh may take 10-15 minutes to run.

Calculating new dates

If you want to calculate new dates but handle the reset yourself -- common if you want to use branch delete instead of reset HEAD -- run instead as:

git checkout develop
node reset.js --calc
git branch -D main
git checkout -b main
./paint.sh
git push -f

Troubleshooting

It didn't show up

See the guide on which contributions count. Specifically, make sure:

  • The repository you run paint.sh in is not a fork.
  • You run it on the default branch of your repository.

It didn't show up this time

If you're running it again and GH isn't updating your contributions graph, try changing your default branch a couple times -- away from its current default and then back again. Sometimes GH needs that extra little kick to change the graph.

It's hard to read

The script needs to generate many more commits than your busiest days to make a loud and clear statement. The $I variable determines the number of commits. If your graph does not turn a crisp, dark green "ABOLISH ICE,"" try increasing $I.

Credit

Shadow forked from rossabaker/abolish-ice-graphiti, which was bootstrapped from github-graffiti.