5f2c34374babf5749f2701a10cd81800b41fc908

Author
Eric Hudon <ehudon@users.noreply.github.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Change the br action to branch to be more explicit. (#6678)

Diff

 1diff --git a/plugins/jira/README.md b/plugins/jira/README.md
 2index efb8a743a6e6c4d07c01f9ab79075c89d7de5a17..a934ae68c5a0c900f50e082b79c51efbbf8621ca 100644
 3--- a/plugins/jira/README.md
 4+++ b/plugins/jira/README.md
 5@@ -21,6 +21,7 @@ jira new        # opens a new issue
 6 jira dashboard  # opens your JIRA dashboard
 7 jira reported [username]  # queries for issues reported by a user
 8 jira assigned [username]  # queries for issues assigned to a user
 9+jira branch     # opens an existing issue matching the current branch name
10 jira ABC-123    # opens an existing issue
11 jira ABC-123 m  # opens an existing issue for adding a comment
12 ```
13diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh
14index 0340dd7f4af7e165e537983364b8fdfa6a05fa71..052481a60c74a4cd61702bcbad61815712eecc6f 100644
15--- a/plugins/jira/jira.plugin.zsh
16+++ b/plugins/jira/jira.plugin.zsh
17@@ -60,7 +60,7 @@ function jira() {
18   else
19     # Anything that doesn't match a special action is considered an issue name
20     # but `branch` is a special case that will parse the current git branch
21-    if [[ "$action" == "br" ]]; then
22+    if [[ "$action" == "branch" ]]; then
23       local issue_arg=$(git rev-parse --abbrev-ref HEAD)
24       local issue="${jira_prefix}${issue_arg}"
25     else