abolish-ice-graphiti
abolish-ice-graphiti copied to clipboard
Script to make your GitHub contribution graph read "abolish ice"
Make your contributor graph say Abolish ICE

Usage
- have the
gitcommand installed, and (optionally)wgetorcurl - get this repo,
git clone [email protected]:rossabaker/abolish-ice-graphiti.git - update
dates.txtfor current week, via./dates.sh < dow.txt > dates.txtor./raster.sh(use./raster -hto see all the options) - On Github, create a new target repo to be graffitied. I like
abolish-ice - get a local copy of the target repository with
git clone - make a new branch, perhaps
git checkout -b drop-ice - run
username=<user> ./<path_to_repo>/abolish-ice-graphiti/paint.shin the target repo, with your git user name so we get the commit count right,- or
./<path_to_repo>/abolish-ice-graphiti/paint.shif you don't have havecurl/wget - or
commitmax=<most_commits_in_one_day> ./<path_to_repo>/abolish-ice-graphiti/paint.shif you don't havecurl/wgetand your colors are wrong cuz you have a pre-existing day with more than 50 commits (see Troubleshooting below)
- or
- [optionally] switch default branch back and forth if things look wrong (see Troubleshooting below)
refreshing
- Visit the GitHub settings page for yor target repo (
abolish-ice) and under the branches tab, switch the default github branch back to the one without graffiti commits - reset graffiti branch from placeholder branch,
git reset main - update
dates.txtfor current week (2. reprised) - run
paint.sh, with the users name (6. reprised) paint.sh's git push will fail, so do a git push -f [maybe the git push doesn't really belong in paint.sh but in a parent script?]- switch the default github branch back to the one with graffiti commits
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's hard to read
The script needs to generate many more commits than your busiest days to make a loud and clear statement. You can use the environmental variable username to tell paint.sh your github user (username=myname ./paint.sh) and it can check your profile, provided you have curl or wget installed. Otherwise, The maxcommit variable directly determines the number of commits. If your graph does not turn a crisp, dark green "ABOLISH ICE,"" try maxcommit=100 ./paint.sh or higher.
Fading
If the right side of the graph is dark green but the rest is faded, then you can try switching the default branch of your abolish-ice repository back to main (or some non-graffitied branch), and then switching back to the branch with your graffiti commits. This issue is being tracked under #10.
Credit
Bootstrapped from github-graffiti.