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
Nate Smith
bf9d3ab12f
Merge pull request #1607 from cli/pwsh-tty
...
properly check for tty when in powershell
2020-09-01 16:16:31 -05:00
Mislav Marohnić
6933c381bf
Restore Go 1.13 compatibility
2020-09-01 19:12:02 +02:00
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
49ab3ec5bf
check for tty before creating colorables
2020-09-01 11:18:34 -05: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
Sam Coe
b4956006be
Fix up feature request issues url
2020-09-01 15:52:58 +02: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ć
a8b06c329b
Ensure correct ANSI color output during OAuth flow on Windows
...
We used to write directly to `os.Stderr`, but we first need to convert
that into a colorable stream.
2020-09-01 12:31:36 +02:00
Sam Coe
35e739dfbd
Link to bugs and feature requests
2020-09-01 10:25:16 +02:00
Sam Coe
022d29ce79
Further cleanup up README links and update contributing doc
2020-09-01 09:40:27 +02:00
Mislav Marohnić
cb4cc72e50
Handle HTTP 422 response to OAuth Device flow detection
...
If HTTP 422 is encountered, assume that OAuth Device Flow is unavailable
and fall back to OAuth app authorization flow.
2020-08-31 22:26:04 +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
Sam Coe
a8add832b5
Address PR feedback and link cleanup
2020-08-31 16:27:27 +02:00
Sam Coe
a3eb099c14
Remove feedback survey from README
2020-08-31 08:44:04 +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
Nate Smith
bb65ca0635
Merge pull request #1596 from cli/go-version-requirements
...
Clarify our Go version requirements
2020-08-28 13:14:12 -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
Mislav Marohnić
176dd29c05
Clarify our Go version requirements
...
* We are trying to keep the binary building on Go 1.13 to support building the project on Ubuntu 20.04 LTS
* Go 1.14+ is required to run the test suite
* We build our releases on Go 1.15
This adds a CI check that verifies that the project compiles on 1.13
2020-08-28 14:05:50 +02:00
Mislav Marohnić
987e95f0c8
Merge pull request #1593 from wilso199/docs/brew-installation
...
Updating Brew Installation Instructions
2020-08-28 12:24:49 +02:00
Mislav Marohnić
9e5b7aa371
Merge pull request #1594 from cli/remove-feedback-form
...
Remove reference to feedback form
2020-08-28 12:24:18 +02:00
Sam Coe
41f42d4057
Remove reference to feedback form
2020-08-28 09:06:31 +02:00
wilso199
3275690b83
Updating brew install
2020-08-27 20:48:44 -04: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
Nate Smith
87712242ad
Merge pull request #1584 from cli/pr-create-repo-override-crash
...
Correctly surface errors when parsing `pr create --repo` override
2020-08-27 14:00:58 -05: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
Nate Smith
74524fc8f7
Merge pull request #1585 from cli/pr-commands-repo-override-arg
...
Disallow `pr -R` flag for commands that operate on the current branch
2020-08-27 10:52:18 -05:00
Nate Smith
2aa0f817ef
Merge pull request #1583 from cli/oauth-device-fallback-fix
...
Handle "unauthorized_client" HTTP 400 error when doing Device Flow
2020-08-27 10:49:14 -05: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
Mislav Marohnić
b7550fbf15
Correctly surface errors when parsing pr create --repo override
...
This avoids a crash when passing invalid input for the
`pr create --repo` flag.
2020-08-27 14:26:27 +02:00
Mislav Marohnić
1c0f83ffd5
Handle "unauthorized_client" HTTP 400 error when doing Device Flow
...
The "unauthorized_client" error means that OAuth Device Flow is implemented, but either isn't enabled on this GHES instance, or that it isn't enabled for this particular OAuth app. In these cases we fall back to old OAuth app authorization flow.
2020-08-27 14:10:16 +02:00
AliabbasMerchant
d0c2c81f2d
Interactive template selection test for issue create
2020-08-27 13:39:21 +05:30
Nate Smith
f1ea794bf1
Merge pull request #1580 from dan1elhughes/feature/number-url-scriptable-output
...
Number and URL included in scriptable output
2020-08-26 16:41:53 -05:00
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
727b726667
Merge pull request #1579 from cli/stderr-color-windows
...
Enable color ANSI escape sequences on stderr on Windows
2020-08-26 10:37:42 -05:00