Commit graph

3711 commits

Author SHA1 Message Date
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
Sam Coe
01505daaf5
remove previous emoji workaround 2021-04-12 09:56:00 -07:00
Sam Coe
dafa2f61c9
Enable emoji in markdown 2021-04-12 09:50:51 -07:00
Sam Coe
21c4f1498e
go mod tidy 2021-04-12 09:45:14 -07:00
Sam Coe
e7776cc906
update glamour to version which includes emoji support 2021-04-12 09:29:38 -07:00
Cristian Dominguez
b656b56061 Remove unused embedded struct 2021-04-12 12:40:00 -03:00
Michael Gasch
42b518191c Add note on supported value types in raw-fields
Proposing a slight amendment to the `gh api` field docs to clarify the current limitation around "complex" field values, e.g. arrays/objects.

Related: #1484
Signed-off-by: Michael Gasch <mgasch@vmware.com>
2021-04-12 15:20:43 +02: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
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
Cristian Dominguez
a8921162b1 Update tests 2021-04-08 00:27:52 -03:00
Cristian Dominguez
9c471fe7a5 Improve PR status detection 2021-04-08 00:23:22 -03:00
Nate Smith
d78e215c19
Merge pull request #3368 from cli/display-all-the-logs
Display all run logs
2021-04-07 20:20:52 -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
Nate Smith
35c55fd72e
Merge pull request #3349 from cli/artifact-download
Add `run download` command for fetching workflow artifacts
2021-04-07 14:55:08 -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
Mislav Marohnić
a4a41c23e6 Have StringSet preserve original order of values 2021-04-07 19:55:09 +02:00
Nate Smith
b6277e7ce2
Merge pull request #3324 from cli/run-watch
gh run watch
2021-04-07 12:30:22 -05:00