diff --git a/devapp/release.go b/devapp/release.go index 59d819ea..53eef929 100644 --- a/devapp/release.go +++ b/devapp/release.go @@ -84,6 +84,13 @@ type item struct { CLs []*gerritCL } +func (i *item) ReleaseBlocker() bool { + if i.Issue == nil { + return false + } + return i.Issue.HasLabel("release-blocker") +} + type itemsBySummary []item func (x itemsBySummary) Len() int { return len(x) } diff --git a/devapp/templates/release.tmpl b/devapp/templates/release.tmpl index ec373ffb..02f330b2 100644 --- a/devapp/templates/release.tmpl +++ b/devapp/templates/release.tmpl @@ -34,6 +34,10 @@ a:visited { .Item { display: flex; } +.Item-blocker:before { + content: '★'; + position: absolute; +} .Item-num { margin-left: 4ch; min-width: 12ch; @@ -60,7 +64,7 @@ a:visited { {{range .Items}} {{$i := .Issue}} {{if $i}} -