devapp: hide CLs with hashtag wait-author
Updates golang/go#24836
Change-Id: I9964dc7ec2de21201b9258709803623482aa4104
Reviewed-on: https://go-review.googlesource.com/108219
Reviewed-by: Andrew Bonventre <andybons@golang.org>
diff --git a/devapp/reviews.go b/devapp/reviews.go
index 095f384..08b6833 100644
--- a/devapp/reviews.go
+++ b/devapp/reviews.go
@@ -117,6 +117,9 @@
if strings.Contains(cl.Commit.Msg, "DO NOT REVIEW") || strings.Contains(cl.Commit.Msg, "DO NOT SUBMIT") {
return nil
}
+ if cl.Meta.Hashtags().Contains("wait-author") {
+ return nil
+ }
c := &change{GerritCL: cl}
c.LastUpdate = cl.Commit.CommitTime
if len(cl.Messages) > 0 {
diff --git a/devapp/templates/reviews.tmpl b/devapp/templates/reviews.tmpl
index ebc4de5..fa6173b 100644
--- a/devapp/templates/reviews.tmpl
+++ b/devapp/templates/reviews.tmpl
@@ -54,7 +54,7 @@
<header>
<strong>{{.TotalChanges}} open changes</strong>
<div class="header-subtitle">
- Excluding those with “DO NOT REVIEW” and “DO NOT SUBMIT” in the change description
+ Excluding those with hashtag "wait-author" or description containing “DO NOT REVIEW” or “DO NOT SUBMIT”
</div>
<div class="header-subtitle">
<a href="https://go.googlesource.com/build/+/master/devapp/reviews.go">Source code</a>
@@ -74,4 +74,4 @@
</div>
{{end}}
{{end}}
-{{end}}
\ No newline at end of file
+{{end}}