Use t.IsClosed() instead of raw status for the color so results match with the status command
This commit is contained in:
parent
4bed74a6f9
commit
f251e4c431
1 changed files with 3 additions and 3 deletions
|
@ -98,10 +98,10 @@ func (c *Campaign) PrintList(publishedOnly bool) {
|
|||
str = fmt.Sprintf("[%s] %s", color.BlueString(t.JiraLink), t.Summary)
|
||||
}
|
||||
if t.GithubStatus != "" {
|
||||
if t.GithubStatus == "open" {
|
||||
str += fmt.Sprintf(" (%s)", color.GreenString(t.GithubStatus))
|
||||
} else {
|
||||
if t.IsClosed() {
|
||||
str += fmt.Sprintf(" (%s)", color.MagentaString(t.GithubStatus))
|
||||
} else {
|
||||
str += fmt.Sprintf(" (%s)", color.GreenString(t.GithubStatus))
|
||||
}
|
||||
}
|
||||
fmt.Println(str)
|
||||
|
|
Loading…
Reference in a new issue