mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Change the br action to branch to be more explicit. (#6678)
This commit is contained in:
parent
7ed82b4df6
commit
5f2c34374b
2 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ jira new # opens a new issue
|
||||||
jira dashboard # opens your JIRA dashboard
|
jira dashboard # opens your JIRA dashboard
|
||||||
jira reported [username] # queries for issues reported by a user
|
jira reported [username] # queries for issues reported by a user
|
||||||
jira assigned [username] # queries for issues assigned to a user
|
jira assigned [username] # queries for issues assigned to a user
|
||||||
|
jira branch # opens an existing issue matching the current branch name
|
||||||
jira ABC-123 # opens an existing issue
|
jira ABC-123 # opens an existing issue
|
||||||
jira ABC-123 m # opens an existing issue for adding a comment
|
jira ABC-123 m # opens an existing issue for adding a comment
|
||||||
```
|
```
|
||||||
|
|
|
@ -60,7 +60,7 @@ function jira() {
|
||||||
else
|
else
|
||||||
# Anything that doesn't match a special action is considered an issue name
|
# Anything that doesn't match a special action is considered an issue name
|
||||||
# but `branch` is a special case that will parse the current git branch
|
# but `branch` is a special case that will parse the current git branch
|
||||||
if [[ "$action" == "br" ]]; then
|
if [[ "$action" == "branch" ]]; then
|
||||||
local issue_arg=$(git rev-parse --abbrev-ref HEAD)
|
local issue_arg=$(git rev-parse --abbrev-ref HEAD)
|
||||||
local issue="${jira_prefix}${issue_arg}"
|
local issue="${jira_prefix}${issue_arg}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue