Skip to content

Commit

Permalink
x/review/git-codereview: pending should mention abandoned CLs
Browse files Browse the repository at this point in the history
Fixes #golang/go#13622.

Change-Id: I3e16293dd272adbf06ef039f047cefa98ac1352d
Reviewed-on: https://go-review.googlesource.com/32676
Reviewed-by: Russ Cox <rsc@golang.org>
  • Loading branch information
rakyll committed Nov 5, 2016
1 parent 7435a04 commit e973841
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-codereview/pending.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,11 @@ func formatCommit(w io.Writer, c *Commit, short bool) {
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, ", "))
Expand Down

0 comments on commit e973841

Please sign in to comment.