Commit graph

182 commits

Author SHA1 Message Date
Arun Sathiya
9d04ee6c8d
update(run): Use attempt input when fetching jobs (#7831)
* Introduce attempt flag for run watch and use attempt input when fetching jobs

* Handle attempt input for 'run watch' commands instead of using the latest attempt

* Revert attempt flag implementation for 'run watch' command because it is intended only for the latest attempt

* Fix tests for cases when attempt flag is used on 'run view' command

---------

Co-authored-by: Andy Feller <andyfeller@github.com>
2023-10-03 14:36:47 +02:00
Heath Stewart
073ec3426b
Return HTTP errors properly for some commands (#8037)
* Return HTTP error for `run watch`

Partially fixes #8026

* Return HTTP error for `gpg-key delete`

Partially fixes #8026
2023-09-24 18:22:55 +02:00
Harvey Sanders
6f0f5a89e2 Use consistent variable naming 2023-09-05 11:36:33 -04:00
Harvey Sanders
137da73642 Simplify mock jobs response 2023-09-03 20:32:41 -04:00
Harvey Sanders
d5d10a6f38 Use "Link" header for pagination completion check 2023-09-03 20:32:08 -04:00
Harvey Sanders
acc362f9d8 Fix pagination resp with "Link" header 2023-09-03 19:55:27 -04:00
Harvey Sanders
a4547481d6 Refactor GetJobs to use RESTWithNext 2023-09-02 01:01:29 -04:00
Harvey Sanders
44e1efc221 Fetch all jobs on a gh view run --json 2023-08-21 10:29:58 -04:00
Nate Smith
719c9579ba switch to prompter in workflow commands 2023-08-16 15:19:44 -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
William Martin
420f63c3ec
Merge pull request #7526 from cli/wm/zip-log-slashes
Support viewing logs for jobs with composite actions
2023-06-05 16:32:44 +02:00
William Martin
3859dfaa03
Improve docs around run rerun job flag (#7527) 2023-06-05 16:02:27 +02:00
William Martin
2d3047c7e3 Support viewing logs for jobs with composite actions 2023-06-02 13:40:53 +02:00
vilmibm
5597139df3 switch to []int return for multiselect 2023-05-23 00:12:44 -07:00
vilmibm
8a605fbaf5 Merge remote-tracking branch 'upstream/trunk' into run-prompts 2023-05-19 10:25:18 -07:00
cawfeecake
9473ec890c
add --created flag to gh run ls to filter listed runs by when they were created (#7352) 2023-04-25 12:43:19 +02:00
cawfeecake
d7512bb2e7
add --event flag to gh run ls to filter runs by their trigger 2023-04-24 20:50:20 -07:00
Alexander Seiler
218f29f296
Correct some typos 2023-04-21 03:51:31 +02:00
nate smith
c536114de0 use new prompter in run download 2023-04-10 17:38:30 -07:00
nate smith
6fd17ec2d2 delete PromptForRun 2023-04-10 16:43:31 -07:00
nate smith
400da5ac94 golf 2023-04-10 16:43:24 -07:00
nate smith
76fdfaa895 use new prompter in run watch 2023-04-10 16:42:35 -07:00
nate smith
07776d23b1 use new prompter in run rerun 2023-04-10 16:35:00 -07:00
nate smith
415424de85 use new prompter in run cancel 2023-04-10 16:29:24 -07:00
nate smith
9010a2e12c use new prompter in run view 2023-04-10 16:21:47 -07:00
Phillipp Bertram
32901084bd lint fixes 2023-03-30 18:12:25 +02:00
Phillipp Bertram
7b3a83157d cleanup 2023-03-30 18:06:02 +02:00
Phillipp Bertram
409e1555e6 feat(run): add new delete command 2023-03-30 17:02:04 +02:00
nate smith
1fb12a98ea improve test resiliency 2023-03-29 06:25:35 -07:00
Alex Petrov
852bc00354
feat: allow filtering workflow runs by statuses 2023-03-29 18:39:59 -04:00
Benjamin Chadwick
82662685e3
Autocomplete branch flags (#6031)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-29 16:09:44 +00:00
Wing-Kam Wong
0dd8261d2b refactor: use net/url JoinPath 2023-03-28 21:25:42 +08:00
Wing-Kam Wong
48ed914d58 refactor: set the default case first 2023-03-28 21:21:11 +08:00
Wing-Kam Wong
cc554135e8 fix: change MaximumNArgs from 2 to 1 in run view.go 2023-03-28 21:16:04 +08:00
Wing-Kam Wong
0fa168b80b feat: add tests for attempt flag 2023-03-26 19:12:40 +08:00
Wing-Kam Wong
a4c77ffd92 feat: include attempt in getRunLog 2023-03-26 19:12:21 +08:00
Wing-Kam Wong
897a2aa53f refactor: don't show latest attempt 2023-03-26 16:20:57 +08:00
Wing-Kam Wong
3796b6d6e8 feat: append attempt number in returned run url 2023-03-26 16:10:42 +08:00
Wing-Kam Wong
6c66342742 feat: pass latest attempt to RenderRunHeader for watch 2023-03-26 14:38:53 +08:00
Wing-Kam Wong
baaa5c3184 feat: add attemptLabel to RenderRunHeader 2023-03-26 14:38:24 +08:00
Wing-Kam Wong
343e730016 feat: pass attempt to RenderRunHeader 2023-03-26 14:38:05 +08:00
Wing-Kam Wong
9a0f7916c3 feat: update GetRun path based on attempt 2023-03-26 14:11:42 +08:00
Wing-Kam Wong
bd0f535dea feat: pass 0 to fetch latest attempt 2023-03-26 14:11:19 +08:00
Wing-Kam Wong
2894695652 feat: add attempt flag to run view 2023-03-26 14:11:03 +08:00
Sam Coe
39805fa9b1
Properly handle closing files that have been writen to (#7199) 2023-03-23 01:17:47 +00:00
Sam Coe
1786ece4a4
Change uint8 to uint64 to hold job with more than 255 run attempts (#6935) 2023-01-31 08:55:41 +11:00
Mislav Marohnić
b12ea845ef
Migrate to the new Cobra command grouping feature 2022-11-09 16:42:13 +01:00
Natthakit Susanthitanon
8617eb7df9
Add jobs field for run view --json (#6507)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-03 12:59:35 +00:00
Mislav Marohnić
aec2c5f330
run: add number json field to access run number 2022-10-24 15:40:07 +02:00