Takes a JIRA issue and creates a git branch
Project description
JIRA 2 Branch
Takes a JIRA issue and creates a git branch
Usage: jira2branch [OPTIONS] ISSUE_ID_OR_URL
Simple program that takes a JIRA issue ID and creates a new local and
tracking remote branch
Options:
-n, --name-only Generates the branch name and prints it, not actual branch
will be created
-p, --push Push newly created branch to remote
--help Show this message and exit.
- Branch naming format is as follows:
- {CONVENTIONAL_COMMIT_PREFIX}/{ISSUE_ID}_{ISSUE_TITLE}
Requirements
Requires Python 3.8
Dev env
pip install pipenv
pipenv install
virtualenv venv
. venv/bin/activate
pip install --editable .
Afterwards, your command should be available:
$ jira2branch WT3-227
fix/WT3-227_some-jira-issue
Credentials
JIRA credentials will be fetched from [USER HOME]/.j2b/secrets.ini
with the following format:
[JIRA CREDENTIALS]
# url =
# email =
# username =
# password =
# token =
Required fields
url
and email
are required.
Use either username
+ password
or token
depending on how access is configured
Usage
python main.py [JIRA_ISSUE_ID|JIRA_ISSUE_URL]
Examples
python main.py WT3-227
python main.py https://company.atlassian.net/browse/WT3-227
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jira2branch-0.1.4.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for jira2branch-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a989abcfb8b7bcd97f7fbc4fa6ac28ffdf76a7650a6657b40fad65b022b1b7d |
|
MD5 | b6c0d2d32d18a6e0affe8129c7a96e76 |
|
BLAKE2b-256 | 2d075a9047c005d272d6f8ef5e42ec7faaf9911e431f52f141bd56fd3633190f |