X Tutup
Skip to content

Commit ef17aa5

Browse files
author
Amanda Pinsker
committed
Add unicode to pr status
1 parent 2660561 commit ef17aa5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

command/pr.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -412,28 +412,28 @@ func printPrs(w io.Writer, totalCount int, prs ...api.PullRequest) {
412412
var summary string
413413
if checks.Failing > 0 {
414414
if checks.Failing == checks.Total {
415-
summary = utils.Red("All checks failing")
415+
summary = utils.Red("× All checks failing")
416416
} else {
417417
summary = utils.Red(fmt.Sprintf("%d/%d checks failing", checks.Failing, checks.Total))
418418
}
419419
} else if checks.Pending > 0 {
420420
summary = utils.Yellow("Checks pending")
421421
} else if checks.Passing == checks.Total {
422-
summary = utils.Green("Checks passing")
422+
summary = utils.Green("Checks passing")
423423
}
424-
fmt.Fprintf(w, " - %s", summary)
424+
fmt.Fprintf(w, "%s", summary)
425425
}
426426

427427
if reviews.ChangesRequested {
428-
fmt.Fprintf(w, " - %s", utils.Red("Changes requested"))
428+
fmt.Fprintf(w, "%s", utils.Red("+ Changes requested"))
429429
} else if reviews.ReviewRequired {
430-
fmt.Fprintf(w, " - %s", utils.Yellow("Review required"))
430+
fmt.Fprintf(w, "%s", utils.Yellow("- Review required"))
431431
} else if reviews.Approved {
432-
fmt.Fprintf(w, " - %s", utils.Green("Approved"))
432+
fmt.Fprintf(w, "%s", utils.Green("Approved"))
433433
}
434434
} else {
435435
s := strings.Title(strings.ToLower(pr.State))
436-
fmt.Fprintf(w, " - %s", prStateColorFunc(s))
436+
fmt.Fprintf(w, "%s", prStateColorFunc(s))
437437
}
438438

439439
fmt.Fprint(w, "\n")

0 commit comments

Comments
 (0)
X Tutup