vilmibm
248ee424f2
gh workflow {enable, disable}
2021-03-25 11:35:52 -05:00
Mislav Marohnić
5aac1912d3
Merge pull request #3294 from cli/pr-search
...
Add `pr list --search` and `--author` flags
2021-03-25 14:13:44 +01: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ć
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ć
9b0f706604
Merge pull request #3196 from g14a/feature/search-issues
...
add search feature in listing issues
2021-03-23 19:14:57 +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
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ć
84f0f59779
Merge pull request #3253 from cli/http2-upload-retry
...
Allow retrying HTTP/2 uploads for release assets
2021-03-19 16:10:02 +01: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ć
e2de02d6b0
Merge pull request #3192 from cristiand391/add-body-file-flag
...
Accept `--body-file` flag if `--body` is supported
2021-03-15 15:19:10 +01: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
Nate Smith
eddd8f00d1
Merge pull request #3086 from g14a/feature/diffstat-pr
...
Feature/diffstat pr
2021-03-08 16:03:39 -06:00
Mislav Marohnić
b8937e46df
Merge pull request #3183 from kidonng/patch-1
...
Fix a typo in gh api's help text
2021-03-08 15:28:47 +01:00
Mislav Marohnić
ad7783573d
Merge pull request #3182 from educhastenier/patch-1
...
fix typo in docs of `alias` command
2021-03-08 15:27:45 +01:00
Kid
3a8313b4f7
Fix a typo in gh api
2021-03-08 22:14:29 +08:00
Emmanuel Duchastenier
bcef9f83a8
fix typo in docs of alias command
...
correct syntax is `--assignee` instead of `--assigned`
2021-03-08 15:11:31 +01:00
Gowtham Munukutla
1d8dd2f1e9
add tests for additions and deletions
2021-03-06 15:02:16 +05:30
Gowtham Munukutla
f2489ed22f
reduce arg length to fprintf
2021-03-05 14:05:41 +05:30
Gowtham Munukutla
bdd663e658
Add additions and deletions in pr view raw as well
2021-03-05 13:41:25 +05:30
Gowtham Munukutla
9944698665
Add additions and deletions in pr view
2021-03-05 11:20:49 +05:30
Nate Smith
2fbc037658
Merge pull request #3042 from g14a/bug/gist-binary-files
...
Remove functionality to add, view and edit binary files in gists
2021-03-04 13:01:54 -06:00
Mislav Marohnić
6b483aa468
Merge pull request #3083 from cli/update-notice-redirect
...
Avoid checking for new releases when authenticating git
2021-03-04 17:52:09 +01:00
Mislav Marohnić
dbf1145cc0
Merge pull request #3012 from cli/api-jq
...
Add `--filter` to api command to filter data using jq syntax
2021-03-04 17:47:03 +01:00
Mislav Marohnić
0aebfacd95
Merge pull request #3011 from cli/api-template
...
Add a template `--format` flag to api command
2021-03-04 17:46:49 +01:00
Mislav Marohnić
c63247f0ea
Avoid checking for new releases when authenticating git
...
Avoid displaying upgrade notice if any output is redirected. This also
alleviates the need to specifically check for `gh completion -s
<shell>`, `gh __complete`, and other scripting scenarios where we
absolutely don't want to trigger any upgrade checks or notices.
2021-03-04 17:39:25 +01:00
Mislav Marohnić
4e24f36495
Declare --jq, --template, --silent options mutually exclusive
2021-03-04 17:29:59 +01:00
Mislav Marohnić
d89756c94c
Add test for api --jq
2021-03-04 17:10:48 +01:00
Mislav Marohnić
06eeea0737
Change the api --filter flag to api --jq
2021-03-04 17:05:31 +01:00
Mislav Marohnić
4c26d617d3
Merge remote-tracking branch 'origin/api-template' into api-jq
2021-03-04 17:00:41 +01:00
Mislav Marohnić
eb08774370
Assert that executeTemplate is invoked
2021-03-04 16:48:06 +01:00
Mislav Marohnić
f53ad7161a
Add more api --template tests
2021-03-04 16:35:08 +01:00
Mislav Marohnić
0f27084f57
Add flag parsing test for api --template
2021-03-04 15:01:59 +01:00
Mislav Marohnić
07cb5e9e17
Merge remote-tracking branch 'origin' into api-template
2021-03-04 14:53:08 +01:00
Mislav Marohnić
aa5cf6c48a
Merge pull request #3075 from cli/credential-helper-absolute
...
Use absolute path when configuring gh as git credential
2021-03-04 13:51:24 +01:00
Mislav Marohnić
e96d974331
Merge pull request #3023 from cli/cancel-error-status
...
Issue/pr create: exit with nonzero status code when "Cancel" was chosen
2021-03-04 13:45:11 +01:00
Mislav Marohnić
cfbfb578f0
Read Executable from factory instead of from stdlib
2021-03-04 13:41:50 +01:00
Mislav Marohnić
9234163679
Formalize gh process exit codes
...
Here are the statuses:
- 0: success
- 1: misc. error
- 2: user interrupt/cancellation
- 4: authentication needed
These old exit codes are now changed to "1":
- we used to return "2" for config file errors;
- we used to return "2" for alias expansion errors;
- we used to return "3" for alias runtime errors.
I do not believe that there is a need to distinguish these specific
cases via exit status, and converting them to "1" frees codes "2" and
"3" for more practical use.
2021-03-04 13:35:59 +01:00
Mislav Marohnić
1eefb6bbc0
Merge pull request #3077 from cli/api-preview
...
Add the `api --preview` flag to opt into GitHub API previews
2021-03-04 12:39:46 +01:00
Mislav Marohnić
440b59f8c3
Add the api --preview flag to opt into GitHub API previews
...
This was previously available manually via the `-H` flag, but it was
verbose, especially when opting into multiple previews.
2021-03-03 20:12:51 +01:00