Commit graph

19 commits

Author SHA1 Message Date
Andrey
89512590ad
Add --force flag to gh run cancel (#11513)
* feat: add --force flag to run cancel command

Signed-off-by: Andrey <andrekabatareika@gmail.com>

* docs: use less prescriptive docs for --force flag

Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>

* chore: remove short flag

Signed-off-by: Andrey <andrekabatareika@gmail.com>

---------

Signed-off-by: Andrey <andrekabatareika@gmail.com>
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
2025-08-21 12:45:12 -06:00
Uday R
8afb434e59 test(gh run): assert branch names are enclosed in square brackets 2024-12-09 12:45:36 -05:00
Sam Coe
b59f3dc29f
Rewrite issue develop command to fix numerous issues 2023-07-03 14:18:25 +09:00
rajhawaldar
984358444d
gh run cancel needs input validation 2023-06-30 18:55:23 +05:30
nate smith
400da5ac94 golf 2023-04-10 16:43:24 -07:00
nate smith
415424de85 use new prompter in run cancel 2023-04-10 16:29:24 -07:00
Wing-Kam Wong
bd0f535dea feat: pass 0 to fetch latest attempt 2023-03-26 14:11:19 +08:00
Isaac Shalom
f1be4dc51c
Fix looking up workflow name for workflow runs (#6266)
The API field `WorkflowRun.name` is not guaranteed to correspond to the workflow name anymore. This introduces additional API lookups that resolve Workflows by their ID and look up their name in a future-proof fashion.

It also adds two new JSON fields for export: `displayTitle` and `workflowName`.

Co-authored-by: Christina Guo <61271066+guo-chris@users.noreply.github.com>
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-09-21 20:41:19 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
Anton Baklanov
e28fa3c112
Add branch and actor filters to run list (#4100)
* Add branch and actor filters to `run list`

* Simplify what FilterOptions can do

* Check not only limit in TestNewCmdList

* Verify that branch/actor params are parsed properly

* Verify that API requests have proper query parameters

* Change flag name from actor to user

Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-01-26 08:14:56 +02:00
Mislav Marohnić
44775f87c8 Add nolint directives to allow-list current lint violations 2022-01-14 19:52:52 +01:00
Alan Donovan
f4491c7a80 Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
nate smith
a4015b7f09 prompt tests 2021-10-15 15:08:53 -05:00
nate smith
f381a804fc fix tests 2021-10-15 14:57:20 -05:00
nate smith
18975e61d1 fix imports 2021-10-15 14:31:29 -05:00
nate smith
b81eda0c46 newline 2021-10-15 14:28:28 -05:00
nate smith
f329ebd7ca add interactive prompt for in progress runs 2021-10-15 14:19:16 -05:00
Nate Smith
49652cdefa
Update pkg/cmd/run/cancel/cancel.go
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2021-09-02 12:57:50 -05:00
Cristian Dominguez
6ba70d4a1e Add run cancel command 2021-06-14 08:57:06 -03:00