From 3346e7b8dca5df7b55a3846c16b434f2909cb3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 19 Dec 2019 17:50:44 +0100 Subject: [PATCH] Print `pr status` numbers in green We use green to signify "open" state of issues & PRs in `list` commands (as opposed to red for "closed" and purple for "merged" state), so let's be consistent in `status` commands too, where all displayed items are guaranteed to be open. --- command/pr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/pr.go b/command/pr.go index d4fa4cc3a..4d0c8d2ee 100644 --- a/command/pr.go +++ b/command/pr.go @@ -436,7 +436,7 @@ func prCheckout(cmd *cobra.Command, args []string) error { func printPrs(w io.Writer, prs ...api.PullRequest) { for _, pr := range prs { prNumber := fmt.Sprintf("#%d", pr.Number) - fmt.Fprintf(w, " %s %s %s", utils.Yellow(prNumber), truncate(50, replaceExcessiveWhitespace(pr.Title)), utils.Cyan("["+pr.HeadLabel()+"]")) + fmt.Fprintf(w, " %s %s %s", utils.Green(prNumber), truncate(50, replaceExcessiveWhitespace(pr.Title)), utils.Cyan("["+pr.HeadLabel()+"]")) checks := pr.ChecksStatus() reviews := pr.ReviewStatus()