summaryrefslogtreecommitdiff
path: root/cmd/generate/src_contribs.go
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-15 12:08:26 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-15 12:08:26 -0600
commita35780ab78c0733ad48213706276d8fca4eb8264 (patch)
treeb6d2238e1ffcb94b54659c5f1e401c83a7901e0b /cmd/generate/src_contribs.go
parent5b7727162d461cd36e1c828b06a6c8e04e2fbce7 (diff)
imworkingon: Fuss with status styling
Diffstat (limited to 'cmd/generate/src_contribs.go')
-rw-r--r--cmd/generate/src_contribs.go10
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)