A quick hack for decorating your GitHub contribution calendar through a specific date file.
Project description
Overview
GHat (Github Hat Decorator/Green Hat Decorator) is a quick hack for decorating your GitHub contribution calendar with a specific date file.
You can create any patterns you want on the Contribution Calendar.
If you mess up everything, just delete the corresponding repository and your contribution calendar will be restored.
It uses the GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environmental variables to make commits appear in the past.
Be warned that GHat will clobber your repository’s commit history. Therefore it’s better for you to use it on a new repository.
GHat contains a main.py file and a web with JS. The process is to customize the pattern you want through the Web page, and the Web will generate a date.txt which contains the date of the commit and the number of times it should be committed. Then main.py will read the file, make commits based on the date and number of times in the file and finally push it to your repository.
Check the GHat homepage at https://github.com/Nymphxyz/ghat for more information.
Requirements
Git
Python 3.6+
Works on Linux, Windows, macOS(hasn’t been tested)
Install
The quick way:
pip install ghat
Usage
Before you use it remember to check your git email address. It must be same with your email in github, otherwise all commits won’t appear in the contribution calendar.
git config –global user.email “your@email.address”
First cd to your repository directory.
Then you have 3 choices:
The simplest way is type “ghat” and follow the instructions:
ghat
Or use shortcut to initialize a new repository and make commit (This will create two files README.md and work.txt):
ghat -i your_repository_url /path/to/date.file
Or use shortcut to make commits on an existing repository (This operation will create and overwrite file work.txt):
ghat /path/to/date.file
Documentation
Check details at https://github.com/Nymphxyz/ghat
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ghat-0.1.3.tar.gz
.
File metadata
- Download URL: ghat-0.1.3.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a9ad4b6e25ee54ac2186371ae290ee11b4a44b4b30b214c68f83b317367ea19 |
|
MD5 | 065fbb74d968025f4ef64e86da46f366 |
|
BLAKE2b-256 | 27026d7acb1353c77c041d693bcee9a8b37df88e6b9d841081813bba29e486a7 |
File details
Details for the file ghat-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: ghat-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c39e7efdf7e49f50bb16cf4e9aabde6f8e3fb69b84dd282c68dc6ca161778f |
|
MD5 | d1ba1dd70d419d365190b22bd7a380ed |
|
BLAKE2b-256 | 712631b2ea936de4c95abdef27edb6e4a2bee699a3465c2547b063c0541929b6 |