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
Mislav Marohnić
8552cacf79
Fix test after merge
2021-04-02 21:04:31 +02:00
Mislav Marohnić
9c4afca003
Merge remote-tracking branch 'origin' into artifact-download
2021-04-02 21:00:25 +02:00
Mislav Marohnić
b41681cbb7
Restore Go < 1.16 compatibility
2021-04-02 20:54:56 +02:00
Mislav Marohnić
51a0a27a6f
Add ARTIFACTS information to run view
2021-04-02 20:52:41 +02:00
Mislav Marohnić
c54e3c9ca8
Add run download command for downloading workflow artifacts
2021-04-02 20:42:18 +02:00
Nate Smith
216cfb631f
Merge pull request #3333 from cli/run-rerun
...
gh run rerun
2021-04-02 11:06:15 -05:00
Nate Smith
9fe7326d46
Merge pull request #3338 from cli/merge-job-run-view
...
absorb job view into run view
2021-04-02 11:00:48 -05:00
vilmibm
238a371477
no need to hide this
2021-04-02 10:58:33 -05:00
Sam
658004a6ef
Merge pull request #3347 from cli/hostname-override
...
Quick fix: respect default hostname when parsing `owner/repo` pairs
2021-04-02 08:56:28 -07:00
Sam Coe
ee687d7e7f
Add tests for quick fix
2021-04-02 08:42:19 -07:00
Sam
01b3f0f1cb
Merge pull request #3341 from cli/actions-help-section
...
Add section in help for actions commands
2021-04-02 08:34:35 -07:00
Mislav Marohnić
a35d451b67
Fix PR automation workflow
...
- Use AUTOMATION_TOKEN to get around "resource not available by
integration". It looks like jobs triggered from community pull
requests do not have permissions to write to our project.
- Tolerate the "project already has the associated issue" error for
staff as non-fatal.
2021-04-02 15:31:22 +02:00
Mislav Marohnić
69ca2dda4a
Quick fix: respect default hostname when parsing owner/repo pairs
...
This re-enables using GH_HOST to set a default hostname when
supplying repo argument like `gh repo clone owner/repo`.
2021-04-02 15:16:27 +02:00
Mislav Marohnić
815ae7a22d
Merge pull request #3334 from g14a/fix/nontty-fork
...
fix premature return while forking repo non interactively
2021-04-02 11:44:16 +02:00
Sam Coe
8b1ed28121
Add section in help for actions commands
2021-04-01 21:05:50 -07:00
vilmibm
8a60ea3c62
gh run rerun
2021-04-01 19:32:36 -05:00
vilmibm
1ddb33bf3c
add GetRunsWithFilter
2021-04-01 19:32:36 -05:00
Gowtham Munukutla
19c95cf358
Merge branch 'trunk' of https://github.com/cli/cli into fix/nontty-fork
2021-04-01 10:49:22 +05:30
Gowtham Munukutla
5caf01c564
add test for non tty fork
2021-04-01 10:49:12 +05:30
vilmibm
cc8d55c518
remove job command, update gh actions text
2021-03-31 16:17:30 -05:00
vilmibm
0d0ec84775
absorb gh job view into gh run view
2021-03-31 16:17:30 -05:00
Mislav Marohnić
df5883186c
Merge pull request #3336 from cli/pr-checks-crash
...
Treat unrecognized PR Checks statuses as "pending"
2021-03-31 20:21:52 +02:00
Mislav Marohnić
531b15c831
Fix pr automation workflow
2021-03-31 18:39:00 +02:00
Mislav Marohnić
8d3e910dec
Merge pull request #3193 from cli/prautomation
...
Add workflow for automated PR linting
2021-03-31 18:29:30 +02:00
Mislav Marohnić
05c7c2bd1a
Treat unrecognized PR Checks statuses as "pending"
...
Previously, unrecognized Checks statuses would crash the program. For
the sake of supporting the "WAITING" status and for
forward-compatibility, this treats any unrecognized status as "pending".
2021-03-31 18:21:45 +02:00
Gowtham Munukutla
745b3fec17
fix premature return while forking repo non interactively
2021-03-31 20:20:07 +05:30
Nate Smith
6bbebcdee5
Merge pull request #3332 from cli/run-prompt-refactor
...
small refactor around prompting for runs
2021-03-30 14:51:59 -07:00
vilmibm
0ecb04c687
small refactor around prompting for runs
2021-03-30 15:48:42 -05:00
Mislav Marohnić
23b2594662
Fix crash when generating man pages
...
Fixes #3329
2021-03-30 19:59:39 +02:00
Mislav Marohnić
79219c7741
Merge pull request #3271 from cristiand391/disable-preview-long-url
...
Disable preview option in prompts if URL size is too long
2021-03-30 19:34:28 +02:00
Mislav Marohnić
57536e7b0d
💅 cleanup URL length checking
2021-03-30 19:12:31 +02:00
Cristian Dominguez
fb39c38c85
Disable preview option in prompts if URL size is too long
2021-03-30 19:12:31 +02:00
Mislav Marohnić
6018c02dab
Merge pull request #3258 from g14a/feature/transfer-issue
...
Feature/transfer issues
2021-03-30 18:53:23 +02:00
Mislav Marohnić
43dac8fc09
💅 cleanup issue transfer
2021-03-30 18:42:34 +02:00
Gowtham Munukutla
5db62046fd
Add issue transfer command
2021-03-30 18:42:34 +02:00
Mislav Marohnić
d22e72a373
Fix tests broken by incompatible merges
2021-03-30 18:39:37 +02:00
Mislav Marohnić
44ae7ae3cf
Merge pull request #3279 from cli/browser-refactor
...
Pass web browser to each individual command
2021-03-30 16:54:59 +02:00
Mislav Marohnić
b70b0402eb
Merge pull request #3200 from cli/table-widths
...
Ensure that table printer always uses all available width in the terminal
2021-03-30 16:54:13 +02:00
Mislav Marohnić
63a47d0334
Merge pull request #3295 from cli/labels-and-combinator
...
BREAKING: lookup all issue/PR labels with "AND" instead of "OR"
2021-03-30 16:52:14 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated ( #3286 )
2021-03-30 16:51:00 +02:00
Nate Smith
5a3641540f
Merge pull request #3318 from cli/list-by-workflow
...
support --workflow in run list
2021-03-29 16:59:37 -07:00
Nate Smith
c48e5f5591
Merge pull request #3323 from cli/share-run-view
...
Preemptively share code from gh run view
2021-03-29 16:59:27 -07:00
vilmibm
6f898dcbb3
share prForRun
2021-03-29 16:37:42 -05:00
vilmibm
e7fa99b70f
share annotation printing
2021-03-29 16:34:17 -05:00
vilmibm
43ab74a023
share job rendering code
2021-03-29 16:31:18 -05:00
vilmibm
5d9a7825f8
share run header printing
2021-03-29 16:21:28 -05:00
Mislav Marohnić
a238d2952d
Dynamically resolve the column ID for "Needs review"
2021-03-29 15:29:08 +02:00
Mislav Marohnić
c1c936b74b
Improve PR lint script
...
- Do not add draft PRs to the review board
- Do not enforce that the base branch must be "trunk"
- Refuse PRs made with our "trunk" as the head
- Improve staff check to avoid hardcoding
- Improve pattern matching when suggesting to link to an issue
- Use the stock GITHUB_TOKEN
2021-03-29 15:05:34 +02:00