Skip to content

jairamc/gitjira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitJira

Script to create a branch based on a Jira ticket

Installation

Download

Either clone the repo
git clone git@github.com:jairamc/gitjira.git
Or download latest tag
tar -xvzf git-jira.tar.gz

or

unzip git-jira.zip

Install the package

Global install
cd <path-to-code>
python setup.py install

The 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:

Local Install
cd <path-to-code>
python setup.py install --home=~/local

installing locally will require the below steps as well

export PATH=$PATH:$HOME/local/bin
export PYTHONPATH=$HOME/local/lib/python

Features

  • 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

Usage

Run

prompt> gitjira -h

In the current version, branches are created in format <issue type>/<ticket number>. Await improvements!

Special thanks to @mpitid (https://github.com/mpitid) for his help.

About

Script to create a branch based on a Jira ticket

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages