Mislav Marohnić
84b1b36433
Simplify handling the "broken pipe" error
2020-09-07 12:41:28 +02:00
Mislav Marohnić
5e11fe8fa0
Merge pull request #1623 from bdougie/bdougie-filter-credit-bots
...
Filter gh credits for humans
2020-09-07 11:44:59 +02:00
Brian 'bdougie' Douglas
d83c99f87f
filter by contributor type
2020-09-06 22:02:02 -07:00
Mislav Marohnić
ccfe38de26
Add PAGER support to commands that produce significant output
2020-09-04 23:36:14 +02:00
Mislav Marohnić
d01355e24b
Add global PAGER support
...
Extract the ad-hoc PAGER behavior from `pr diff` command and make it
available opt-in to any command through IOStreams.
2020-09-04 23:07:17 +02:00
Mislav Marohnić
ca2f2b18ca
Add support for CLICOLOR "standard"
...
The CLICOLOR_FORCE environment variable can now be used to force color
output even when stdout is redirected. https://bixense.com/clicolors/
2020-09-04 21:32:58 +02:00
Mislav Marohnić
995828abf8
Avoid setting a default Accept header in hub api
...
Due to our HTTP client default behavior, an `Accept` header is added to
all API requests. This is fine for all commands except `gh api`, where
the user should ideally have fine-grained control over most aspects of
HTTP requests and where there should be little to no defaults in general.
2020-09-04 17:42:57 +02:00
Mislav Marohnić
2bb5e052d8
Send GITHUB_TOKEN to github.com and GITHUB_ENTERPRISE_TOKEN to GHES
2020-09-04 17:25:37 +02:00
ShubhankarKG
05a39b732a
Fix tests
2020-09-04 18:58:15 +05:30
ShubhankarKG
147cdcdbb4
Add extra confirm step and a flag
2020-09-04 18:24:31 +05:30
vilmibm
eb132a1ae6
Merge remote-tracking branch 'origin/trunk' into checks
2020-09-03 14:48:32 -05:00
Mislav Marohnić
a470d49c64
Fix reporting release URL when creating with assets
2020-09-03 16:06:28 +02:00
Mislav Marohnić
1ad9b0b14e
Have FindDraftRelease be truer to its name
2020-09-03 15:35:07 +02:00
Mislav Marohnić
d4b45c68e2
Allow downloading assets from the latest release
2020-09-03 15:34:10 +02:00
Mislav Marohnić
151a7340a6
Fix .zip and .js overrides for Windows
2020-09-03 11:44:54 +02:00
Mislav Marohnić
02a057a709
Try fixing Windows tests
2020-09-02 22:11:46 +02:00
vilmibm
2961c655fb
review feedback
2020-09-02 11:33:39 -05:00
Mislav Marohnić
abf83c02c0
Merge pull request #1606 from cli/ghe-oauth-422-response
...
Handle HTTP 422 response to OAuth Device flow detection
2020-09-02 13:12:11 +02:00
AliabbasMerchant
9e7279604d
Fix failing tests for Windows (due to line-ending issues)
2020-09-02 10:03:56 +05:30
AliabbasMerchant
51c5595cad
Interactive template selection test for PR create
2020-09-02 09:56:28 +05:30
Mislav Marohnić
4976bd75e1
Fix date-based release output and tests
2020-09-01 19:09:10 +02:00
Mislav Marohnić
0f42c7af4d
Add tests for release create, delete, download, view
2020-09-01 18:56:30 +02:00
Nate Smith
734959c39d
Merge pull request #1603 from cli/create-pr-metadata-failure
...
Be transparent about which part of `pr create` flow failed
2020-09-01 10:51:55 -05:00
Mislav Marohnić
9ef1791fdb
Provide machine-readable release view output
2020-09-01 15:23:43 +02:00
Mislav Marohnić
d0d9cc2f9b
View latest release if no tag provided
2020-09-01 14:16:59 +02:00
Mislav Marohnić
48a827ee34
Tweak gh config set -h output format on auth login
2020-09-01 13:19:30 +02:00
Mislav Marohnić
0de3f678bc
Only validate --hostname when flag was provided
2020-09-01 13:19:19 +02:00
Mislav Marohnić
b029397d32
Validate the --hostname flag value
2020-09-01 13:06:13 +02:00
Mislav Marohnić
1a051e9c44
Validate hostname as entered in the auth prompt
2020-09-01 12:59:58 +02:00
Mislav Marohnić
766e4950d9
Be transparent about which part of pr create flow failed
...
When applying metadata to the new PR such as assignees or reviewers, if
the operation fails, an error message would get printed:
failed to create pull request: <API error text>
This was misleading, because the PR did get created; it's just that
updating it failed. The new error message is:
https://github.com/OWNER/REPO/pull/123
pull request update failed: <API error text>
The PR URL is printed on stdout and the error message is printed on
stderr. In case of any errors, the exit code is still non-zero.
2020-08-31 16:46:22 +02:00
Nate Smith
fd31007075
Merge pull request #1590 from colinshum/colinshum/template-repo
...
[Feature] Create repositories from a template repo
2020-08-28 14:09:12 -05:00
Colin Shum
99372f0dbc
[Refactor] Add variadic argument to repoCreate to support templates
2020-08-28 15:02:08 -04:00
vilmibm
8dd93e1748
gh pr checks
...
A basic first pass on gh pr checks that shows all check runs for a given
PR's latest commit.
2020-08-28 13:18:59 -05:00
Mislav Marohnić
9b45112e69
Add tests for release list/delete
2020-08-28 19:26:16 +02:00
Mislav Marohnić
9a4a5d86cb
Merge remote-tracking branch 'origin' into release-cmd
2020-08-28 17:47:53 +02:00
Mislav Marohnić
d43d5e0bc9
Add release delete
2020-08-28 17:41:00 +02:00
Sam Coe
41f42d4057
Remove reference to feedback form
2020-08-28 09:06:31 +02:00
Colin Shum
2886dd913f
[Refactor] toView -> toClone
2020-08-27 19:13:06 -04:00
Colin Shum
263e3a6a35
Update create_test.go
2020-08-27 17:57:55 -04:00
Colin Shum
32e5d05328
[Fix] Warn user when --template is passed with incompatible flags
2020-08-27 15:00:57 -04:00
Colin Shum
58f62a4a15
[Feature] Create repository from template
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2020-08-27 14:46:16 -04:00
Mislav Marohnić
c21caf5b2b
Disallow pr -R flag for commands that operate on the current branch
...
If the `--repo` flag is specified, then the user intends to select a
repository other than the current one. In that case, it doesn't make
sense to fall back to detecting the PR belonging to the current branch,
so throw a descriptive error instead.
2020-08-27 16:30:34 +02:00
AliabbasMerchant
d0c2c81f2d
Interactive template selection test for issue create
2020-08-27 13:39:21 +05:30
Dan Hughes
7b8d052f0e
Add new output to existing test
2020-08-26 17:31:13 +01:00
Dan Hughes
a3aea11e5b
Include URL and number in non-TTY output
2020-08-26 17:28:17 +01:00
Nate Smith
27c49279b3
Merge pull request #1567 from ganboonhong/view-without-username
...
View repositories without username
2020-08-25 13:57:42 -05:00
Mislav Marohnić
9829a4dc84
Update release list output to contain badges
2020-08-25 20:33:54 +02:00
Nate Smith
fc1c800042
Merge pull request #1492 from ShubhankarKG/newConfirmations
...
New confirmations
2020-08-25 13:31:47 -05:00
Mislav Marohnić
f7d0988799
Offer different editor modes during release create
2020-08-25 20:20:44 +02:00
Nate Smith
82c6830849
Merge pull request #1548 from cli/auth-check
...
new auth flow UX
2020-08-25 10:16:23 -05:00