Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Add "git jira" command #119

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Add "git jira" command #119

wants to merge 1 commit into from

Conversation

salcode
Copy link
Member

@salcode salcode commented Jul 5, 2020

The git jira command parses the branch name to determine the Jira
issue based on the naming s
{branchType}/{issue}-{description}
e.g. feature/sf-123-add-new-button (the issue number is sf-123)

The git jira command uses this issue number in combination with the
custom git config value stored at salcode.jiraSubdomain (in my example
this value is ferrarello) to construct a
URL like

https://ferrarello.atlassian.net/browse/sf-123

and open this URL in the browser.

You can set the global salcode.jiraSubdomain value with the following (where acme is the subdomain of the Jira instance, e.g. https://acme.atlassian.net/jira/

git config --global salcode.jiraSubdomain acme

See #118

The "git jira" command parses the branch name to determine the Jira
issue based on the naming scheme
{branchType}/{issue}-{description}
e.g. feature/sf-123-add-new-button (the issue number is "sf-123")

The git jira command uses this issue number in combination with the
custom git config value stored at 'salcode.jiraSubdomain' (in my example
this value is "ferrarello") to construct a
URL like

https://ferrarello.atlassian.net/browse/sf-123

and open this URL in the browser.

See #118
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant