diff options
author | August Feng <46177585+augustfengd@users.noreply.github.com> | 2023-01-09 14:43:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 19:43:42 +0000 |
commit | fc722807f815bd170849f92d215ce2afa62e55b6 (patch) | |
tree | e25522e33a6c146b7fb7c7ef238f71b87946a345 | |
parent | 9f31951019401449e057a236886d133f58c5cc64 (diff) | |
download | zsh-fc722807f815bd170849f92d215ce2afa62e55b6.tar.gz zsh-fc722807f815bd170849f92d215ce2afa62e55b6.tar.bz2 zsh-fc722807f815bd170849f92d215ce2afa62e55b6.zip |
refactor(jira)!: rename myissues to mine and add completion (#10931)
-rw-r--r-- | plugins/jira/README.md | 2 | ||||
-rw-r--r-- | plugins/jira/_jira | 1 | ||||
-rw-r--r-- | plugins/jira/jira.plugin.zsh | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/plugins/jira/README.md b/plugins/jira/README.md index f8751aaa2..a7cfe6d9e 100644 --- a/plugins/jira/README.md +++ b/plugins/jira/README.md @@ -18,11 +18,11 @@ This plugin supplies one command, `jira`, through which all its features are exp jira # performs the default action jira new # opens a new issue +jira mine # queries for your own issues jira dashboard # opens your JIRA dashboard jira tempo # opens your JIRA Tempo jira reported [username] # queries for issues reported by a user jira assigned [username] # queries for issues assigned to a user -jira myissues # queries for you own issues jira branch # opens an existing issue matching the current branch name # The branch name may have prefixes ending in "/": "feature/MP-1234", # and also suffixes starting with "_": "MP-1234_fix_dashboard" diff --git a/plugins/jira/_jira b/plugins/jira/_jira index 1ac3eeda3..0e37b7e9d 100644 --- a/plugins/jira/_jira +++ b/plugins/jira/_jira @@ -4,6 +4,7 @@ local -a _1st_arguments _1st_arguments=( 'new:create a new issue' + 'mine:open my issues' 'dashboard:open the dashboard' 'tempo:open the tempo' 'reported:search for issues reported by a user' diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh index 37d7b6a27..0add040d1 100644 --- a/plugins/jira/jira.plugin.zsh +++ b/plugins/jira/jira.plugin.zsh @@ -44,7 +44,7 @@ function jira() { open_command "${jira_url}/secure/CreateIssue!default.jspa" elif [[ "$action" == "assigned" || "$action" == "reported" ]]; then _jira_query ${@:-$action} - elif [[ "$action" == "myissues" ]]; then + elif [[ "$action" == "mine" ]]; then echo "Opening my issues" open_command "${jira_url}/issues/?filter=-1" elif [[ "$action" == "dashboard" ]]; then |