x/review/git-codereview: pending should mention abandoned CLs
Fixes #golang/go#13622.
Change-Id: I3e16293dd272adbf06ef039f047cefa98ac1352d
Reviewed-on: https://go-review.googlesource.com/32676
Reviewed-by: Russ Cox <rsc@golang.org>
diff --git a/git-codereview/pending.go b/git-codereview/pending.go
index 80c90d8..0219a20 100644
--- a/git-codereview/pending.go
+++ b/git-codereview/pending.go
@@ -285,8 +285,11 @@
if g.CurrentRevision == c.Hash {
tags = append(tags, "mailed")
}
- if g.Status == "MERGED" {
+ switch g.Status {
+ case "MERGED":
tags = append(tags, "submitted")
+ case "ABANDONED":
+ tags = append(tags, "abandoned")
}
if len(tags) > 0 {
fmt.Fprintf(w, " (%s)", strings.Join(tags, ", "))