Commit graph

941 commits

Author SHA1 Message Date
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
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
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ć
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
vilmibm
0ecb04c687 small refactor around prompting for runs 2021-03-30 15:48:42 -05: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ć
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
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
vilmibm
a225173551 support --workflow in run list 2021-03-28 14:03:25 -05:00
vilmibm
dd9a9ef966 red check for disabling 2021-03-25 12:04:32 -05:00
vilmibm
f801a94482 bonus: bump list limit 2021-03-25 11:35:52 -05:00
vilmibm
248ee424f2 gh workflow {enable, disable} 2021-03-25 11:35:52 -05:00
Mislav Marohnić
210d9dff20 Remove implicit sort:created-desc sort clause for pr list
This is the default sort mode for issues, so it's not needed to
explicitly set it. Furthermore, the user can specify their own sort mode
through the `--search` option.
2021-03-25 13:44:07 +01:00
Mislav Marohnić
2fa8a85813 Unify checking whether search filters were passed by the user 2021-03-24 18:11:21 +01:00
Mislav Marohnić
949df38d49 BREAKING: lookup all issue/PR labels with "AND" instead of "OR" combinator
This switches to the Search API whenever labels are specified in `issue
list` or `pr list`. This ensures that the results match those that would
be returned in the web UI.
2021-03-24 18:04:25 +01:00
Mislav Marohnić
f008c61d13 WIP fix filter 2021-03-24 17:54:20 +01:00
Mislav Marohnić
0131541bb2 Add tests for listPullRequests 2021-03-24 16:46:45 +01:00
Mislav Marohnić
4388c1db14 Add pr list --author filter 2021-03-24 16:46:45 +01:00
Mislav Marohnić
01bbb15b57 Add pr list --search 2021-03-24 16:46:45 +01:00
Mislav Marohnić
75cfed4bef Import PR list API implementation to pr/list package
Also splits List vs. Search queries into separate methods for better
maintanability.
2021-03-24 16:46:42 +01:00
Mislav Marohnić
179d3f0249 Add a unified GitHub Search query builder 2021-03-23 18:52:58 +01:00
Gowtham Munukutla
70d4873914 add generic search naming for issues and PRs @samcoe 2021-03-23 18:10:46 +01:00
Mislav Marohnić
80035aa686 💅 cleanup switching to search mode in issue list 2021-03-23 18:08:14 +01:00
Gowtham Munukutla
f791bbdbcb add search feature in listing issues 2021-03-23 18:08:14 +01:00
Mislav Marohnić
e53d02b680 Add back isolated tests for issue/PR lookup by argument 2021-03-22 12:55:04 +01:00
Mislav Marohnić
111e8dbcf2 Pass web browser to each individual command
This removes sensitivity to the BROWSER environment variable in tests
and makes it easier to verify the URL that the browser was invoked with
without having to stub sub-processes.
2021-03-19 21:22:37 +01:00
Nate Smith
2ab073d599
Refactor use of glamour to allow style overrides (#3243)
* Refactor use of glamour to allow style overrides

* leave the things the way they were and just expose the ability to set overrides
2021-03-19 16:29:32 +00:00
Mislav Marohnić
40da8f9c69 Allow retrying HTTP/2 uploads for release assets
The `Request.GetBody` func allows the retry mechanism to reopen the file
that's being uploaded as the request body in case the body of the
previous request has already started to be read.

Hopefully fixes the error:

    http2: Transport: cannot retry err [stream error: stream ID 1; REFUSED_STREAM]
    after Request.Body was written; define Request.GetBody to avoid this error

Ref. d523dce5a7/http2/transport.go (L554)
2021-03-17 15:55:22 +01:00
Nate Smith
8480381d13
workflow list (#3245)
* add gh workflow list

* review feedback
2021-03-16 16:12:27 -05:00
Nate Smith
126b498e9f
Actions Support Phase 1 (#2923)
* Implement first round of support for GitHub Actions

This commit adds:

gh actions
gh run list
gh run view
gh job view

as part of our first round of actions support. These commands are
unlisted and considered in beta.

* review feedback

* tests for exit status on job view

* spinner tracks io itself

* review feedback

* fix PR matching

* enable pager for job log viewing

* add more colorf functions

* add AnnotationSymbol

* hide job, run

* do not add method to api.Client

* remove useless cargo coded copypasta
2021-03-16 13:59:34 -07:00
Mislav Marohnić
d5fb817dfc Remove unnecessary BodyFile field 2021-03-15 15:12:41 +01:00
Cristian Dominguez
8bfe64d593 Accept --body-file flag if --body is supported 2021-03-15 15:12:41 +01:00
Mislav Marohnić
fc2cdd99b1 Ensure that ssh-key list uses the full width of the terminal
Due to a bug in its truncate function, the width of the table would
sometimes be off-by-one.
2021-03-11 19:04:57 +01:00
Mislav Marohnić
ed15bebb84 Ensure that table printer fills the full width of the terminal
Sometimes, due to rounding errors, after calculating the width of each
column in a table, the sum of all columns would be shorter that the
total available width in the terminal. This reimplements the elastic
column resizing algorithm to ensure that all available space has been
filled.

As a bonus fix, columns that contain URLs are never truncated.
2021-03-11 19:04:57 +01:00