Commit graph

3477 commits

Author SHA1 Message Date
Mislav Marohnić
7ec5b0f8cf Merge remote-tracking branch 'origin' into json-format 2021-04-14 18:52:34 +02:00
Mislav Marohnić
78e48e2dfd Tests for GraphQL query builder and JSON exporter 2021-04-14 18:52:02 +02:00
Mislav Marohnić
e327b42f79 Add gh help formatting topic & link to it from commands with JSON output 2021-04-14 18:27:15 +02:00
Nate Smith
f4d96ee789
Merge pull request #3418 from cli/startup-failure
actions wrap up
2021-04-14 11:22:58 -05:00
vilmibm
bca828be2c placeholder consistency 2021-04-14 11:17:12 -05:00
Mislav Marohnić
3ad41e3e65 Change JSON Exporter to an interface 2021-04-14 18:15:52 +02:00
Mislav Marohnić
e63904bacd Expose more fields for PR JSON export 2021-04-14 17:28:27 +02:00
Nate Smith
a12cbe7c01
Merge pull request #3412 from cristiand391/current-branch-help-text
Add note about current branch detection
2021-04-13 23:00:24 -05:00
vilmibm
e10a3f164f minor usage improvements 2021-04-13 22:43:02 -05:00
vilmibm
a85ef9273f bump run list limit 2021-04-13 22:42:38 -05:00
vilmibm
04844256dd annotation fixes 2021-04-13 22:10:32 -05:00
vilmibm
cd8ec47163 unhide actions commands 2021-04-13 22:08:06 -05:00
vilmibm
4e281153f6 incorporate wording feedback 2021-04-13 22:06:06 -05:00
vilmibm
efe7aa1f78 fix small bug with startup_failure conclusion 2021-04-13 22:03:59 -05:00
Mislav Marohnić
a516ee6833 Add issue status --json support 2021-04-13 21:26:26 +02:00
Mislav Marohnić
3f22e3b353 Add pr status --json support 2021-04-13 21:12:30 +02:00
Mislav Marohnić
e158fac1a9 Restructure PullRequestStatus function 2021-04-13 20:54:09 +02:00
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
Nate Smith
cadabb4e6d
Merge pull request #3413 from cli/run-download-fix
Fix extracting workflow artifact to a relative path
2021-04-13 12:23:30 -05: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
Cristian Dominguez
8a0d5b0e43 Add note about current branch detection 2021-04-13 12:30:07 -03:00
Mislav Marohnić
61a8049592 Extract JSON filtering functionality from gh api 2021-04-13 16:48:21 +02:00
Mislav Marohnić
93b5bf20eb Fix secrets in PR automation being available to PR from forks 2021-04-13 11:10:13 +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
Nate Smith
861fd5b5e3
Merge pull request #3407 from skedwards88/patch-1
Use `--exit-status` instead of `-e` in example
2021-04-12 17:48:51 -05:00
Sarah Edwards
0b79471024
Use --exit-status instead of -e in example 2021-04-12 15:16:12 -07:00
Nate Smith
77de8e9356
Merge pull request #3405 from cli/gh-actions
make gh actions output Real
2021-04-12 15:57:17 -05: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
Nate Smith
0e7a657984
Merge pull request #3404 from cli/on-array
handle array type for on: in workflow file
2021-04-12 12:12:11 -05:00
vilmibm
eb66ee9dfe handle array type for on: in workflow file 2021-04-12 12:05:05 -05:00
Mislav Marohnić
a9bebff03f
Merge pull request #3383 from cli/build-env
Tweak build scripts to enable cross-compiling
2021-04-12 09:33:59 +02:00
Nate Smith
bc681b9480
Merge pull request #3303 from cli/workflow-run
gh workflow run
2021-04-09 16:14:08 -05:00
Sam
76b0ff7a6d
Merge pull request #3379 from cli/failed-logs
Add flag log-failed to display only logs of failed steps
2021-04-09 13:07:40 -07: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
Mislav Marohnić
d43720620e Tweak build scripts to enable cross-compiling
The main build script for this project is `script/build.go` which
implements Makefile-like building of the `gh` binary and associated man
pages. Our Makefile defers to the Go script.

However, when setting GOOS, GOARCH, and other environment variables to
modify the target for the resulting binary, these environment variables
would affect the execution of `build.go` as well, which was unintended.

This tweaks our Makefile to reset variables like GOOS and GOARCH when
building the `build.go` script itself, ensuring that the built script
runs on the same platform, and adds the ability to pass environment
variables as arguments to `go run script/build.go`. This allows the
following usage on platforms without `make`:

    go run script/build.go GOOS=linux

With this style of invocation, the GOOS setting does not actually affect
`go run` itself; just the `go build` that is executed in a child process.
2021-04-09 15:48:12 +02:00