cli/pkg/cmd/pr
endorama 825328031f
Add watch functionality to pr checks command (#4519)
* pr-checks: extract webMode

* pr-checks: extract checks information collection

* pr-checks: extract output utilities

* pr-checks: implement watch flag

* pr-checks: remove SIGINT interceptor

* pr-checks: exit with error if some task has failed

* update flags help text

* update default interval to 10s

* move interval flag parse to RunE

* refactor checksRunWatchMode to use infinite loop

* Refactor printTable function

* Refactor collect function

* Set up checksRun to use new refactored functions and simplify logic a bit

* Add tests

* Always set interval in opts

* use Duration flag

* Revert back to using int flag for consistency with run watch

* Use run watch screen clearing mechanism

* Re-add pager support

Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-02-08 08:33:42 +01:00
..
checkout add GetOrDefault functionality to config 2022-01-11 14:56:58 -06:00
checks Add watch functionality to pr checks command (#4519) 2022-02-08 08:33:42 +01:00
close Improve issue close re: overfetching, handling PRs 2021-11-23 19:38:55 +01:00
comment Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
create Add non-local PR template support (#5097) 2022-01-29 07:41:24 +00:00
diff Standardize pager output across commands (#5141) 2022-02-01 08:36:51 +01:00
edit Simplify GraphQL mutations whose response we are not interested in 2021-12-08 13:35:19 +01:00
list Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
merge spelling: possible (#5157) 2022-02-02 16:54:09 +01:00
ready Consistent punctuation in command usages (#5139) 2022-01-31 10:56:12 +00:00
reopen Improve issue reopen re: overfetching, handling PRs 2021-11-23 19:39:40 +01:00
review Add nolint directives to allow-list current lint violations 2022-01-14 19:52:52 +01:00
shared Add non-local PR template support (#5097) 2022-01-29 07:41:24 +00:00
status pr status: show number of approvals (#4240) 2022-01-21 15:58:15 +00:00
view Standardize pager output across commands (#5141) 2022-02-01 08:36:51 +01:00
pr.go Consistent punctuation in command usages (#5139) 2022-01-31 10:56:12 +00:00