GitBooster: Boosts your GitHub stats with automated, scheduled commits to keep your profile active.
Project description
🚀 GitBooster
GitBooster is a Python-powered automation tool designed to keep your GitHub activity graph green by automatically modifying files, committing changes, and pushing them to your repositories. With seamless scheduling via cron jobs, GitBooster ensures your contributions remain consistent, all while being easy to configure and use.
🌟 Features
- Automated File Updates: Randomly appends updates to a file in your repository.
- Dynamic Commit Messages: Choose from a list of customizable commit messages.
- Automatic Scheduling: Set up cron jobs directly from the script for periodic execution.
- Fully Configurable: Easily manage repository path, file, commit messages, and schedule with command-line arguments.
🚀 Getting Started
Prerequisites
- Install Python (3.6 or higher)
- (a) Install the required Python libraries:
python3 -m venv .venv
source .venv/bin/activate
python setup.py install
- (b) Install from pip:
python3 -m pip install gitbooster
- Create a Repository: It is strongly recommended to use a dummy repository for testing and automation to avoid cluttering important repositories. Example:
git init dummy-repo
cd dummy-repo
echo "Initial commit" > README.md
git add README.md
git commit -m "Initial commit"
git remote add origin https://github.com/your-username/dummy-repo.git
git push -u origin main
- Build the package:
rm -rf build dist *.egg-info;
python setup.py sdist bdist_wheel;
pip install dist/GitBooster-0.0.1-py3-none-any.whl;
Usage
- Run the Script Manually: Modify a file, commit, and push the changes:
python3 gitbooster.py --repo-path /path/to/repo --file-to-modify activity_file.txt
- Schedule the Script: Add a cron job to automate the script execution:
python3 gitbooster.py --repo-path /path/to/repo --file-to-modify activity_file.txt --setup-cron --schedule daily
- Customize Commit Messages: Use your own list of commit messages:
python3 gitbooster.py --repo-path /path/to/repo --file-to-modify activity_file.txt --commit-messages "Boosted activity" "Automation is awesome" "Another automated commit"
🔧 Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
--repo-path |
String | Required | Path to your local GitHub repository. |
--file-to-modify |
String | Required | Name of the file to modify within the repository. |
--commit-messages |
List | Random messages | List of commit messages to randomly choose from. |
--setup-cron |
Flag | False |
If set, the script will schedule itself in the crontab. |
--remove-cron |
Flag | False |
If set, the script will remove itself in the crontab. |
--schedule |
String | every3hours |
Frequency for scheduling (hourly, daily, or every3hours). |
--user |
String | username |
If set, use this user (no check) for the cronjob, else it uses the logged user |
Example
cd GitBooster/;
python3 -m -pip install gitbooster;
gitbooster --repo-path $PWD/. --file-to-modify activity_file.txt --commit-messages "Boosted activity" "Automation is awesome" "Another automated commit" --setup-cron --schedule daily
Modifying file: /home/ElNiak/Documents/Projects/GitBooster/./activity_file.txt
Ensured directories exist for: /home/ElNiak/Documents/Projects/GitBooster/./activity_file.txt
Appended modification:
Automated update at 2024-12-03 09:57:17.438760
Committing and pushing changes in repo: /home/ElNiak/Documents/Projects/GitBooster/.
Repository has changes.
Changes added to staging area.
Committed changes with message: Automation is awesome
Changes pushed to remote repository: Automation is awesome
Scheduling cron job for user: ElNiak
Created new cron job: * * * * * python3 /home/ElNiak/Documents/Projects/GitBooster/gitbooster/gitbooster.py
Set job frequency to daily.
Cron job scheduled with frequency: daily
🎯 Why Use GitBooster?
- 🕒 Save Time: No need to manually make changes or push updates.
- 📈 Boost GitHub Stats: Keep your contribution graph consistently green.
- 🔄 Fully Automated: Set it and forget it with cron scheduling.
💡 Future Enhancements
- Add support for multiple file modifications.
- Support for custom time schedules.
- Integration with GitHub API for real-time repository insights.
- Automated github repository creation.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitbooster-1.0.0.tar.gz.
File metadata
- Download URL: gitbooster-1.0.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c20ba32508c51be5e85d6328dc5920dad5439f6411f60ba552342267ba612466
|
|
| MD5 |
7531f54d23108e53517eaaaeeada921c
|
|
| BLAKE2b-256 |
1bb73a300020942846eb3743a9629ecc63f2bcc922ab29ac9a6e00c202dcc118
|
Provenance
The following attestation bundles were made for gitbooster-1.0.0.tar.gz:
Publisher:
python-publish.yml on ElNiak/GitBooster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitbooster-1.0.0.tar.gz -
Subject digest:
c20ba32508c51be5e85d6328dc5920dad5439f6411f60ba552342267ba612466 - Sigstore transparency entry: 153073527
- Sigstore integration time:
-
Permalink:
ElNiak/GitBooster@42b5d0d34ea8129217d4cfe48aa4b0c64846ffcf -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/ElNiak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@42b5d0d34ea8129217d4cfe48aa4b0c64846ffcf -
Trigger Event:
release
-
Statement type:
File details
Details for the file GitBooster-1.0.0-py3-none-any.whl.
File metadata
- Download URL: GitBooster-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273141436a7bf5f4d33e4482f10cf45373c8d4c7c6f3d159e5adb8f48b09b773
|
|
| MD5 |
9948ce825f65c31d7259405c35189554
|
|
| BLAKE2b-256 |
5e45fefd35f2fd68f189959669145d0ddaa3fcab142c6f822216d722943d118b
|
Provenance
The following attestation bundles were made for GitBooster-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on ElNiak/GitBooster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitbooster-1.0.0-py3-none-any.whl -
Subject digest:
273141436a7bf5f4d33e4482f10cf45373c8d4c7c6f3d159e5adb8f48b09b773 - Sigstore transparency entry: 153073528
- Sigstore integration time:
-
Permalink:
ElNiak/GitBooster@42b5d0d34ea8129217d4cfe48aa4b0c64846ffcf -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/ElNiak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@42b5d0d34ea8129217d4cfe48aa4b0c64846ffcf -
Trigger Event:
release
-
Statement type: