X Tutup
Skip to content

Commit 3346e7b

Browse files
committed
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.
1 parent 2c94616 commit 3346e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command/pr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ func prCheckout(cmd *cobra.Command, args []string) error {
436436
func printPrs(w io.Writer, prs ...api.PullRequest) {
437437
for _, pr := range prs {
438438
prNumber := fmt.Sprintf("#%d", pr.Number)
439-
fmt.Fprintf(w, " %s %s %s", utils.Yellow(prNumber), truncate(50, replaceExcessiveWhitespace(pr.Title)), utils.Cyan("["+pr.HeadLabel()+"]"))
439+
fmt.Fprintf(w, " %s %s %s", utils.Green(prNumber), truncate(50, replaceExcessiveWhitespace(pr.Title)), utils.Cyan("["+pr.HeadLabel()+"]"))
440440

441441
checks := pr.ChecksStatus()
442442
reviews := pr.ReviewStatus()

0 commit comments

Comments
 (0)
X Tutup