Open an idiomatically named branch using a Jira Issue URL.
$ cd directory-of-your-project
$ jira-git https://your-jira-instance/browse/TEAM-1234
This will run git checkout -b TEAM-1234--summary-of-your-ticket
.
- Install Go
- Get Atlassian API Token from here.
- Set shell environment variables:
export ATLASSIAN_API_TOKEN=token-from-above
export ATLASSIAN_BASE_URL=https://your-jira-instance.atlassian.net
export [email protected]
- Clone this,
cd
in, andgo install
. Ideally thejira-git
command will now be somewhere in yourPATH
.
MIT