Skip to content

PetrVakulenko/ContributionsForPeriod

Repository files navigation

Get contributions from list of repos for last [n] days

System is automatically searching your contributions in the list of repos (including different branches)

Requirements

  • bash core utils
  • git util

Getting application

Clone repository to the common place:

git clone git@github.com:PetrVakulenko/ContributionsForPeriod.git ~/code/ContributionsForPeriod/

Application dependencies

  1. Move to the application dir
cd ~/code/ContributionsForPeriod/
  1. You can use default variables
REPOS_PATH=./tmp/repos
OUTPUT=./tmp/output.txt
EMAIL=$(git config user.email)
DAYS=7

or create .env from .env.dist

make .env
  1. Create repos.config from repos.config.dist
make repos.config

ENV params

Configuration of the .env file:

  • EMAIL - string, your email at the github account (for example vakulenkopetya@gmail.com)
  • DAYS - number, count of days, which you need to get contributions (for example 7)
  • REPOS_PATH - path for clonning repos from repos.config. Has default value ./tmp/repos
  • OUTPUT - text file file saving result of script. Has default value ./tmp/output.txt

Creating repositories list

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 master
    • git@github.com:PetrVakulenko/ContributionsForPeriod.git test-branch - default branch test-branch
    • git@github.com:PetrVakulenko/ContributionsForPeriod.git test-branch1;test-branch2 - default branches test-branch1 and test-branch2

Build

Running the script:

make build

Clear

clearing default repositories path.

make clear

About

Getting all contributions of separate person from a list of repositories.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published