Script to create a branch based on a Jira ticket
git clone git@github.com:jairamc/gitjira.gittar -xvzf git-jira.tar.gzor
unzip git-jira.zipcd <path-to-code>
python setup.py installThe last step needs to be run as root if you want to install gitjira for all users. If you prefer a local installation — which is recommended at present, since there is no simple way to uninstall it — you can instead run the following commands as a user:
cd <path-to-code>
python setup.py install --home=~/localinstalling locally will require the below steps as well
export PATH=$PATH:$HOME/local/bin
export PYTHONPATH=$HOME/local/lib/python- Create branches of the format -
<issue type>/<ticket number>- given just the ticket id - Automatically transition tickets to in-progress when you create a branch for a ticket
- Fetch the summary of a ticket and add to commit message when committing a branch created by gitjira
Run
prompt> gitjira -hIn the current version, branches are created in format <issue type>/<ticket number>. Await improvements!