X Tutup
Skip to content

Commit be7ffe3

Browse files
author
Amanda Pinsker
committed
Tweak unicode some more
1 parent ef17aa5 commit be7ffe3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

command/pr.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func printPrs(w io.Writer, totalCount int, prs ...api.PullRequest) {
398398
prStateColorFunc = utils.Red
399399
}
400400

401-
fmt.Fprintf(w, " %s %s %s", prStateColorFunc(prNumber), text.Truncate(50, replaceExcessiveWhitespace(pr.Title)), utils.Cyan("["+pr.HeadLabel()+"]"))
401+
fmt.Fprintf(w, " %s %s %s ", prStateColorFunc(prNumber), text.Truncate(50, replaceExcessiveWhitespace(pr.Title)), utils.Cyan("["+pr.HeadLabel()+"]"))
402402

403403
checks := pr.ChecksStatus()
404404
reviews := pr.ReviewStatus()
@@ -412,24 +412,24 @@ 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 {
417-
summary = utils.Red(fmt.Sprintf("%d/%d checks failing", checks.Failing, checks.Total))
417+
summary = utils.Red(fmt.Sprintf("× %d/%d checks failing ", checks.Failing, checks.Total))
418418
}
419419
} else if checks.Pending > 0 {
420-
summary = utils.Yellow("Checks pending")
420+
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
}
424424
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))

0 commit comments

Comments
 (0)
X Tutup