Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
fc722807
Unverified
Commit
fc722807
authored
Jan 09, 2023
by
August Feng
Committed by
GitHub
Jan 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(jira)!: rename myissues to mine and add completion (#10931)
parent
9f319510
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
README.md
plugins/jira/README.md
+1
-1
_jira
plugins/jira/_jira
+1
-0
jira.plugin.zsh
plugins/jira/jira.plugin.zsh
+1
-1
No files found.
plugins/jira/README.md
View file @
fc722807
...
...
@@ -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"
...
...
plugins/jira/_jira
View file @
fc722807
...
...
@@ -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'
...
...
plugins/jira/jira.plugin.zsh
View file @
fc722807
...
...
@@ -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
"
==
"m
yissues
"
]]
;
then
elif
[[
"
$action
"
==
"m
ine
"
]]
;
then
echo
"Opening my issues"
open_command
"
${
jira_url
}
/issues/?filter=-1"
elif
[[
"
$action
"
==
"dashboard"
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment