mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 23:00:30 +08:00
refactor(jira)!: rename myissues to mine and add completion (#10931)
This commit is contained in:
parent
9f31951019
commit
fc722807f8
@ -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"
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user