Commit graph

930 commits

Author SHA1 Message Date
Mislav Marohnić
298ef8add5 Merge remote-tracking branch 'origin' into json-format 2021-04-13 20:31:11 +02:00
Mislav Marohnić
abe452bb19 Add --json export flag for issues and pull requests
The `--json` flag accepts a list of GraphQL fields to query for and
output in JSON format. To get the list of available flags, run the
command with a blank value for `--json`. Additional `--jq` and
`--template` flags are available just like in `gh api`.
2021-04-13 20:29:31 +02:00
Mislav Marohnić
19ea49b5a9 Move issue list queries to under the issue/list package 2021-04-13 19:25:19 +02:00
Mislav Marohnić
f8c7fd1d28 Fix extracting workflow artifact to a relative path
To prevent zipslip, we verify that each extracted file would fall
strictly under the prefix of the path to extract to. However, this
yielded a false positive when extracting to `.`, which is the default
for downloading a single archive.
2021-04-13 19:15:14 +02:00
Mislav Marohnić
61a8049592 Extract JSON filtering functionality from gh api 2021-04-13 16:48:21 +02:00
Nate Smith
a579b00dac
Merge pull request #3408 from cli/fix-run-selection
Make run selection unique
2021-04-12 18:44:07 -05:00
Sam Coe
4dd8a44ff1
make run log cache key unique 2021-04-12 16:27:51 -07:00
Sam Coe
1ddebf6396
Fix trying to read from non-existent log file 2021-04-12 16:12:52 -07:00
Sam Coe
3f3c8f2b26
Add time since run to run selection survey options 2021-04-12 16:03:47 -07:00
Sarah Edwards
0b79471024
Use --exit-status instead of -e in example 2021-04-12 15:16:12 -07:00
vilmibm
c724070cbe just check nil 2021-04-12 15:51:00 -05:00
vilmibm
2b17de80f6 workflow view 2021-04-12 14:38:45 -05:00
vilmibm
9a0193b77c add gh run download 2021-04-12 14:28:58 -05:00
vilmibm
cb03a3a776 linter appeasement 2021-04-12 14:17:05 -05:00
vilmibm
185f6242b9 make gh actions output Real 2021-04-12 13:58:40 -05:00
vilmibm
eb66ee9dfe handle array type for on: in workflow file 2021-04-12 12:05:05 -05:00
Nate Smith
bc681b9480
Merge pull request #3303 from cli/workflow-run
gh workflow run
2021-04-09 16:14:08 -05:00
vilmibm
de0e53b18f correct Examples 2021-04-09 14:33:43 -05:00
vilmibm
d89993720d add specific unit tests for findInputs 2021-04-09 14:32:32 -05:00
Sam Coe
33d6017467
linter 2021-04-09 12:16:31 -07:00
Sam Coe
8a4a8dd451
Moar memory 2021-04-09 12:13:01 -07:00
vilmibm
6c92f2fa60 review feedback 2021-04-09 13:24:19 -05:00
vilmibm
5b7f8fd9eb review feedback 2021-04-09 13:20:00 -05:00
Sam Coe
4a610f13cf
tweak wording 2021-04-09 09:19:15 -07:00
Sam Coe
6b2b792241
linter 2021-04-08 15:57:57 -07:00
Sam Coe
dc63480cf6
Add flag log-failed to display only logs of failed steps 2021-04-08 15:51:08 -07:00
vilmibm
48e162fa05 share workflow content getting code 2021-04-08 16:27:57 -05:00
vilmibm
1b5eb30575 review feedback
- Switch to -f/-F instead of -- (this lead to some `gh api` copypasta)
- Remove --json
- Don't parse workflow YAML if not collecting interactively
- Share GetWorkflowContent
- Fix a parsing issue
2021-04-08 16:27:57 -05:00
vilmibm
f80268d966 gh workflow run 2021-04-08 16:21:06 -05:00
Nate Smith
ed0ef6ad14
Merge branch 'trunk' into display-all-the-logs 2021-04-07 20:12:47 -05:00
Nate Smith
7f02141364
obsolete TODO 2021-04-07 19:55:57 -05:00
Nate Smith
c2375205f4
golf 2021-04-07 19:55:44 -05:00
vilmibm
878bdb8d50 add an example 2021-04-07 14:48:28 -05:00
vilmibm
9b5e92e64a make test windows friendly 2021-04-07 14:47:12 -05:00
Mislav Marohnić
026dc4657a Merge remote-tracking branch 'origin' into artifact-download 2021-04-07 20:26:31 +02:00
Mislav Marohnić
a449a1a6f7 Add tests for artifact rendering in run view 2021-04-07 20:26:12 +02:00
Mislav Marohnić
6ce12c07f6 Move Artifact to the "shared" package 2021-04-07 20:26:12 +02:00
Mislav Marohnić
0e94de1ce6 Address run download feedback
- With no arguments in TTY mode, prompt which artifacts to download
- Change `--pattern` argument to be just `--name` and only do exact
  matching
- For multi-archive downloads, prefix the destination path with the name
  of the artifact
- Add tests exercising HTTP functionality
- Avoid "zipslip" path injection when extracting ZIP files
- Add tests for ZIP extraction
2021-04-07 19:56:28 +02:00
vilmibm
65524f1ea8 review feedback 2021-04-07 12:19:47 -05:00
Sam Coe
5cb4ece754
Renaming and cleanup 2021-04-07 10:10:11 -07:00
Sam Coe
67e45f1bce
Display all run logs 2021-04-07 09:31:59 -07:00
vilmibm
c8e481e165 gh run watch 2021-04-06 20:27:09 -05:00
vilmibm
c8d1d6e8b4 sigh 2021-04-05 15:39:14 -05:00
vilmibm
97b15fea2d xplatform oops 2021-04-05 15:33:31 -05:00
vilmibm
b5fc794b78 support --log for runs 2021-04-05 15:23:21 -05:00
vilmibm
b705b3d6ba make ExitStatus reflect focused job 2021-04-05 14:11:06 -05:00
Nate Smith
20c58f1a0b
Merge pull request #3357 from cli/run-flags
support --web in gh run view
2021-04-05 13:41:00 -05:00
vilmibm
3f95e4595f tweak error text 2021-04-05 13:35:47 -05:00
vilmibm
1424e4a973 support --web when focusing a job 2021-04-04 21:33:27 -05:00
vilmibm
7fc9295786 support --web for run view 2021-04-04 21:27:20 -05:00