diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-04-15 12:08:26 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-04-15 12:08:26 -0600 |
commit | a35780ab78c0733ad48213706276d8fca4eb8264 (patch) | |
tree | b6d2238e1ffcb94b54659c5f1e401c83a7901e0b /cmd | |
parent | 5b7727162d461cd36e1c828b06a6c8e04e2fbce7 (diff) |
imworkingon: Fuss with status styling
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/generate/src_contribs.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/generate/src_contribs.go b/cmd/generate/src_contribs.go index 47133b2..b47cf89 100644 --- a/cmd/generate/src_contribs.go +++ b/cmd/generate/src_contribs.go @@ -63,13 +63,13 @@ func (c *Contribution) Fill() error { } } switch { - case strings.Contains(c.Status, "open"): - c.StatusClass = "open" - case strings.Contains(c.Status, "merged"): - c.StatusClass = "merged" case strings.Contains(c.Status, "released") || strings.Contains(c.Status, "deployed"): c.StatusClass = "released" - case strings.Contains(c.Status, "closed"): + case strings.Contains(c.Status, "merged"): + c.StatusClass = "merged" + case strings.Contains(c.Status, "open"): + c.StatusClass = "open" + case strings.Contains(c.Status, "closed") || strings.Contains(c.Status, "locked"): c.StatusClass = "closed" default: return fmt.Errorf("unrecognized status string: %q", c.Status) |