mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 01:33:40 +01:00
added comment functionality
added commenting functionality by appending 'm' after the issue key (regular JIRA shortcut)
This commit is contained in:
parent
de56943a0e
commit
8652fd64ef
@ -49,6 +49,20 @@ open_jira_issue () {
|
|||||||
else
|
else
|
||||||
$open_cmd "$jira_url/browse/$jira_prefix$1"
|
$open_cmd "$jira_url/browse/$jira_prefix$1"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
local addcomment=''
|
||||||
|
if [[ "$2" == "m" ]]; then
|
||||||
|
addcomment="#add-comment"
|
||||||
|
echo "Add comment to issue #$1"
|
||||||
|
else
|
||||||
|
echo "Opening issue #$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "x$JIRA_RAPID_BOARD" = "xtrue" ]]; then
|
||||||
|
$open_cmd "$jira_url/issues/$1$addcomment"
|
||||||
|
else
|
||||||
|
$open_cmd "$jira_url/browse/$1$addcomment"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user