This repository allows you to automatically populate your GitHub contribution chart with incremental contributions. Each time the workflow runs, it updates a contribution counter and commits the change, effectively filling up your contribution graph on GitHub. By forking this repository and setting up the workflow, you'll be able to increase your contribution without manually committing code.
Result:
Follow these steps to fork the repository and set it up for your own use:
- Navigate to the repository you want to fork (this one).
- Click on the Fork button located at the top-right corner of the repository page.
- Choose your GitHub account or an organization where you want to fork the repository.
After forking the repository, you can clone it to your local machine to work with it.
-
Go to your GitHub account and open the forked repository.
-
Click on the Code button and copy the repository URL (HTTPS or SSH).
-
Open a terminal on your local machine and run the following command:
git clone https://github.com/NanduWasTaken/contributor.git
After cloning the repository, move into the project directory:
cd contributor
The repository uses GitHub Actions to automate the increment of the contribution count. Follow these steps to ensure the workflow runs on your fork:
- Go to the Actions tab of your forked repository on GitHub.
- Ensure the workflow file (
contrib.yml
) is correctly set up under.github/workflows/
. - If you want the workflow to run on a schedule or on manual triggers, you can either wait for the scheduled run or trigger it manually from the Actions tab.
This is essential to commit code as you.
- Go to your forked repository on GitHub.
- Click on Settings > Secrets > New repository secret.
- Add the following secrets:
GH_EMAIL
– Your GitHub email address (e.g.,[email protected]
).GH_USERNAME
– Your GitHub username (e.g.,yourname
).
To Allow the Action to commit changes as you, You can allow this settings at Settings > Actions > General > Workflow permission.:
Once everything is set up, you can trigger the workflow in two ways:
-
Manually:
- Go to the Actions tab.
- Select the "Contribute" workflow.
- Click Run workflow.
-
Scheduled:
- The workflow is set to run every hour automatically, thanks to the cron schedule (
0 * * * *
).
- The workflow is set to run every hour automatically, thanks to the cron schedule (
The workflow will increment the value in contrib.txt
each time it runs, and the commit message will reflect the incremented contribution count.
If you want to contribute or suggest changes to the repository:
- Fork the repository (as explained above).
- Clone your fork to your local machine.
- Make any changes or improvements you'd like.
- Push the changes back to your forked repository.
- Open a Pull Request from your fork to the original repository.
This project is licensed under the MIT License – see the LICENSE file for details.
Let me know if you need any adjustments to the README.md
or if you'd like to include additional sections!