Allows you to convert your image into the activity on your GitHub heatmap, as well as fill it randomly
CommitDraw
is a tool to decorate your GitHub contribution heatmap
based on the git's ability to accept commits in the past.
The image that was provided:
From left to right: turtle, hedgehog, mushroom, smile, penguin
CommitDraw
analyzes a picture that you provide to the
program, then generates an array of commits. After all starts to draw by making commits
from the date you have chosen.
Warning If your beginning date is not Sunday, the program will pass pixels from the Sunday to the date you have chosen
Note A picture that you provide to the program should be 7 pixels in height.
Otherwise, the result may be blurred.
CommitDraw
makes commits for the period you have chosen in randomly amount in range of specified
minimal and maximal values
-
You can download and launch built program for your os
Download Download Download
Or run from source following the instructions:
- Execute
git clone https://github.com/Tankolom-X/CommitDraw.git
- Make sure you have an actual version of pip:
pip install --upgrade pip
- Then install required dependencies: Pillow, GitPython and tkinter:
pip install -r requirements.txt
Note Linux and Mac users may be forced to install tkinter via their distribution's package managers
- Run main.py
python main.py
- Execute
-
In the menu select the activity you want to do
- Convert an image to your GitHub heatmap activity
- Fill you GitHub heatmap activity randomly
Note
For the best result the picture should be 7 pixels in height
The date must be in YYYY-MM-DD format -
Follow the prompts
-
Wait until the program will finish and close
-
In GitHub create a new repository
-
Push the repository on your PC with commits from the command line to the GitHub's repository using:
git remote add origin https://github.com/[username]/[repositoryName]
git branch -M main
git push -u origin main
-
Wait. GitHub will update your contribution heatmap soon
Warning The years you used to draw cannot be removed from the activity on GitHub
Your picture should be 7 pixels in height. Otherwise, the result may be blurred.
White color means no activity(Empty cell on your GitHub heatmap).
The darker the color of your image the darker the color of the cell on your GitHub heatmap.
Examples you can find here: https://github.com/Tankolom-X/CommitDraw/tree/main/samples