We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pr status
1 parent f70accd commit 8fea481Copy full SHA for 8fea481
command/pr.go
@@ -258,12 +258,15 @@ func printPrs(prs ...api.PullRequest) {
258
}
259
260
if checks.Total > 0 {
261
- ratio := fmt.Sprintf("%d/%d", checks.Passing, checks.Total)
+ var ratio string
262
if checks.Failing > 0 {
263
+ ratio = fmt.Sprintf("%d/%d", checks.Passing, checks.Total)
264
ratio = utils.Red(ratio)
265
} else if checks.Pending > 0 {
266
267
ratio = utils.Yellow(ratio)
268
} else if checks.Passing == checks.Total {
269
+ ratio = fmt.Sprintf("%d", checks.Total)
270
ratio = utils.Green(ratio)
271
272
fmt.Printf(" - checks: %s", ratio)
0 commit comments