Skip to content

Commit 8fea481

Browse files
committed
Shorter representation of successful checks in pr status
1 parent f70accd commit 8fea481

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

command/pr.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,15 @@ func printPrs(prs ...api.PullRequest) {
258258
}
259259

260260
if checks.Total > 0 {
261-
ratio := fmt.Sprintf("%d/%d", checks.Passing, checks.Total)
261+
var ratio string
262262
if checks.Failing > 0 {
263+
ratio = fmt.Sprintf("%d/%d", checks.Passing, checks.Total)
263264
ratio = utils.Red(ratio)
264265
} else if checks.Pending > 0 {
266+
ratio = fmt.Sprintf("%d/%d", checks.Passing, checks.Total)
265267
ratio = utils.Yellow(ratio)
266268
} else if checks.Passing == checks.Total {
269+
ratio = fmt.Sprintf("%d", checks.Total)
267270
ratio = utils.Green(ratio)
268271
}
269272
fmt.Printf(" - checks: %s", ratio)

0 commit comments

Comments
 (0)