diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2020-05-29 11:01:03 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2020-05-29 11:01:03 -0600 |
commit | a3be2e4084285d7625e63bfe4b951c58143e3c9c (patch) | |
tree | a018be4daef44a51b91477f38da514867659c7d6 /plugins/jira | |
parent | 191e14cc7f63c4525a0f66d571416faf9e91a185 (diff) | |
parent | 93cc3964e2d265ab0571298d69d2eed0a65d13f2 (diff) | |
download | zsh-a3be2e4084285d7625e63bfe4b951c58143e3c9c.tar.gz zsh-a3be2e4084285d7625e63bfe4b951c58143e3c9c.tar.bz2 zsh-a3be2e4084285d7625e63bfe4b951c58143e3c9c.zip |
Merge branch 'master' of https://github.com/ohmyzsh/ohmyzsh
Diffstat (limited to 'plugins/jira')
-rw-r--r-- | plugins/jira/README.md | 1 | ||||
-rw-r--r-- | plugins/jira/_jira | 1 | ||||
-rw-r--r-- | plugins/jira/jira.plugin.zsh | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jira/README.md b/plugins/jira/README.md index a211e34e0..a5633af77 100644 --- a/plugins/jira/README.md +++ b/plugins/jira/README.md @@ -19,6 +19,7 @@ jira # performs the default action jira new # opens a new issue 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 diff --git a/plugins/jira/_jira b/plugins/jira/_jira index d64614233..1ac3eeda3 100644 --- a/plugins/jira/_jira +++ b/plugins/jira/_jira @@ -5,6 +5,7 @@ local -a _1st_arguments _1st_arguments=( 'new:create a new issue' 'dashboard:open the dashboard' + 'tempo:open the tempo' 'reported:search for issues reported by a user' 'assigned:search for issues assigned to a user' 'branch:open the issue named after the git branch of the current directory' diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh index cb46f540b..22807e0ae 100644 --- a/plugins/jira/jira.plugin.zsh +++ b/plugins/jira/jira.plugin.zsh @@ -54,6 +54,9 @@ function jira() { else open_command "${jira_url}/secure/Dashboard.jspa" fi + elif [[ "$action" == "tempo" ]]; then + echo "Opening tempo" + open_command "${jira_url}/secure/Tempo.jspa" elif [[ "$action" == "dumpconfig" ]]; then echo "JIRA_URL=$jira_url" echo "JIRA_PREFIX=$jira_prefix" |