From f251e4c431eccb499e9d8cdbba0cd37db7aa657f Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Wed, 7 Oct 2020 20:11:53 +0200 Subject: [PATCH] Use t.IsClosed() instead of raw status for the color so results match with the status command --- model/campaign.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/campaign.go b/model/campaign.go index ad9b67b..38561c2 100644 --- a/model/campaign.go +++ b/model/campaign.go @@ -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)