dmitri.shuralyov.com/website/gido/...

Add support for Gerrit CL hashtags.

Follows https://golang.org/issue/24836.
dmitshur committed 1 year ago commit 07f8731647088509ad1be06a6fe85ce0ea2347b6
service.go
@@ -226,14 +226,23 @@ func issuesAndChanges(repo *maintner.GitHubRepo, gerrit *maintner.Gerrit) map[st
 				return nil
 			}
 
 			prefixedTitle := firstParagraph(cl.Commit.Msg)
 			pkgs, title := ParsePrefixedChangeTitle(root, prefixedTitle)
+			var labels []issues.Label
+			cl.Meta.Hashtags().Foreach(func(name string) {
+				labels = append(labels, issues.Label{
+					Name:  name,
+					Color: issues.RGB{R: 0xed, G: 0xed, B: 0xed}, // Light gray.
+				})
+			})
+			sort.Slice(labels, func(i, j int) bool { return labels[i].Name < labels[j].Name })
 			c := change.Change{
 				ID:        uint64(cl.Number),
 				State:     state,
 				Title:     title,
+				Labels:    labels,
 				Author:    gitUser(cl.Commit.Author),
 				CreatedAt: cl.Created,
 				Replies:   len(cl.Messages),
 			}