The script has a number of parameters (all optional), simply run the following to get a list of these:
python3 gitshout.py -h
If you run this without any parameters it will assume that the current working directory is a local git repository, otherwise a repo path should be specified using -r
:
python3 gitshout.py -r /Users/cenobiteelf/repos/example_repo
There are 2 parameters that take regex patterns as input (-b
and -i
), the first is for determining whether a branch has a valid name based on your conventions or standards and the second one is for ignoring certain branches, like main
or develop
. The usage of these will look something like this:
python3 gitshout.py -b "^(origin\/)?(hotfix|feature|release)(\/[-\w\d.]*)*$"
Below is an example of what will be printed to the console when you run this. Do note that in the actual output the lines are coloured by error type.
John Smith
origin/feature/JIRA-323_addFormButtons (updated 163 days ago)
origin/feature/JIRA-200_documentUploads (updated 131 days ago)
origin/bugfix/bugFixes (invalid name)