System is automatically searching your contributions in the list of repos (including different branches)
- bash core utils
- git util
Clone repository to the common place:
git clone git@github.com:PetrVakulenko/ContributionsForPeriod.git ~/code/ContributionsForPeriod/- Move to the application dir
cd ~/code/ContributionsForPeriod/- You can use default variables
REPOS_PATH=./tmp/repos
OUTPUT=./tmp/output.txt
EMAIL=$(git config user.email)
DAYS=7or create .env from .env.dist
make .env- Create repos.config from repos.config.dist
make repos.configConfiguration of the .env file:
EMAIL- string, your email at the github account (for examplevakulenkopetya@gmail.com)DAYS- number, count of days, which you need to get contributions (for example7)REPOS_PATH- path for clonning repos from repos.config. Has default value./tmp/reposOUTPUT- text file file saving result of script. Has default value./tmp/output.txt
Fill repos config for your repos. Each line - one row. One row should consist:
- first param - repository
- second param optionally - default branch (if not set, default branch will be master)
- examples of one line:
git@github.com:PetrVakulenko/ContributionsForPeriod.git- default branch mastergit@github.com:PetrVakulenko/ContributionsForPeriod.git test-branch- default branch test-branchgit@github.com:PetrVakulenko/ContributionsForPeriod.git test-branch1;test-branch2- default branches test-branch1 and test-branch2
Running the script:
make buildclearing default repositories path.
make clear