Always clear screen when watching PR checks (#5678)
This commit is contained in:
parent
f834b2a510
commit
3574240fa7
1 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue