mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 04:33:28 +02:00
Prefer transition names which match exactly
Some transitions are substrings of other transitions, and the current loop sometimes never chose the correct one. For example, it would never choose "QA" if there were also a transtion "Deploy to QA". Ditto for "Open" and "Reopen".
This commit is contained in:
@@ -666,6 +666,9 @@ func (c *Cli) CmdTransition(issue string, trans string) error {
|
||||
transName = name
|
||||
transID = id
|
||||
transMeta = transition.(map[string]interface{})
|
||||
if strings.ToLower(name) == strings.ToLower(trans) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if transID == "" {
|
||||
|
||||
Reference in New Issue
Block a user