Always clear screen when watching PR checks (#5678)

This commit is contained in:
Heath Stewart 2022-05-22 23:38:50 -07:00 committed by GitHub
parent f834b2a510
commit 3574240fa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,10 +146,12 @@ func checksRun(opts *ChecksOptions) error {
return err
}
if counts.Pending != 0 && opts.Watch {
if opts.Watch {
refreshScreen(opts.IO.Out)
cs := opts.IO.ColorScheme()
fmt.Fprintln(opts.IO.Out, cs.Boldf("Refreshing checks status every %v seconds. Press Ctrl+C to quit.\n", opts.Interval.Seconds()))
if counts.Pending != 0 {
cs := opts.IO.ColorScheme()
fmt.Fprintln(opts.IO.Out, cs.Boldf("Refreshing checks status every %v seconds. Press Ctrl+C to quit.\n", opts.Interval.Seconds()))
}
}
printSummary(opts.IO, counts)