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:
Don Brower
2016-08-24 14:36:23 -04:00
parent 693b3e4d40
commit e40f9c10c3
+3
View File
@@ -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 == "" {