diff options
author | Eric Hudon <ehudon@users.noreply.github.com> | 2018-03-18 17:10:34 -0400 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2018-03-18 14:10:34 -0700 |
commit | 5f2c34374babf5749f2701a10cd81800b41fc908 (patch) | |
tree | 7d10ef193273cc719392bb8686ae286cb5eff97d | |
parent | 7ed82b4df6d381ef26a4dbdf253bf414497adcd1 (diff) | |
download | zsh-5f2c34374babf5749f2701a10cd81800b41fc908.tar.gz zsh-5f2c34374babf5749f2701a10cd81800b41fc908.tar.bz2 zsh-5f2c34374babf5749f2701a10cd81800b41fc908.zip |
Change the br action to branch to be more explicit. (#6678)
-rw-r--r-- | plugins/jira/README.md | 1 | ||||
-rw-r--r-- | plugins/jira/jira.plugin.zsh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/jira/README.md b/plugins/jira/README.md index efb8a743a..a934ae68c 100644 --- a/plugins/jira/README.md +++ b/plugins/jira/README.md @@ -21,6 +21,7 @@ jira new # opens a new issue jira dashboard # opens your JIRA dashboard jira reported [username] # queries for issues reported by 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 m # opens an existing issue for adding a comment ``` diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh index 0340dd7f4..052481a60 100644 --- a/plugins/jira/jira.plugin.zsh +++ b/plugins/jira/jira.plugin.zsh @@ -60,7 +60,7 @@ function jira() { else # 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 - if [[ "$action" == "br" ]]; then + if [[ "$action" == "branch" ]]; then local issue_arg=$(git rev-parse --abbrev-ref HEAD) local issue="${jira_prefix}${issue_arg}" else |