summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-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)