Skip to content

Commit e40f9c1

Browse files
committed
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".
1 parent 693b3e4 commit e40f9c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,9 @@ func (c *Cli) CmdTransition(issue string, trans string) error {
666666
transName = name
667667
transID = id
668668
transMeta = transition.(map[string]interface{})
669+
if strings.ToLower(name) == strings.ToLower(trans) {
670+
break
671+
}
669672
}
670673
}
671674
if transID == "" {

0 commit comments

Comments
 (0)