Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
5f2c3437
Commit
5f2c3437
authored
Mar 18, 2018
by
Eric Hudon
Committed by
Robby Russell
Mar 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the br action to branch to be more explicit. (#6678)
parent
7ed82b4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
README.md
plugins/jira/README.md
+1
-0
jira.plugin.zsh
plugins/jira/jira.plugin.zsh
+1
-1
No files found.
plugins/jira/README.md
View file @
5f2c3437
...
@@ -21,6 +21,7 @@ jira new # opens a new issue
...
@@ -21,6 +21,7 @@ jira new # opens a new issue
jira dashboard # opens your JIRA dashboard
jira dashboard # opens your JIRA dashboard
jira reported [username] # queries for issues reported by a user
jira reported [username] # queries for issues reported by a user
jira assigned [username] # queries for issues assigned to a user
jira assigned [username] # queries for issues assigned to a user
jira branch # opens an existing issue matching the current branch name
jira ABC-123 # opens an existing issue
jira ABC-123 # opens an existing issue
jira ABC-123 m # opens an existing issue for adding a comment
jira ABC-123 m # opens an existing issue for adding a comment
```
```
...
...
plugins/jira/jira.plugin.zsh
View file @
5f2c3437
...
@@ -60,7 +60,7 @@ function jira() {
...
@@ -60,7 +60,7 @@ function jira() {
else
else
# Anything that doesn't match a special action is considered an issue name
# Anything that doesn't match a special action is considered an issue name
# but `branch` is a special case that will parse the current git branch
# but `branch` is a special case that will parse the current git branch
if
[[
"
$action
"
==
"br"
]]
;
then
if
[[
"
$action
"
==
"br
anch
"
]]
;
then
local
issue_arg
=
$(
git rev-parse
--abbrev-ref
HEAD
)
local
issue_arg
=
$(
git rev-parse
--abbrev-ref
HEAD
)
local
issue
=
"
${
jira_prefix
}${
issue_arg
}
"
local
issue
=
"
${
jira_prefix
}${
issue_arg
}
"
else
else
...
...
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