Mislav Marohnić
d43d5e0bc9
Add release delete
2020-08-28 17:41:00 +02:00
Mislav Marohnić
9829a4dc84
Update release list output to contain badges
2020-08-25 20:33:54 +02:00
Mislav Marohnić
f7d0988799
Offer different editor modes during release create
2020-08-25 20:20:44 +02:00
Mislav Marohnić
4f6021a56d
Add interactive flow for release create
2020-08-21 18:27:58 +02:00
Mislav Marohnić
cf46ae2db7
Log larger response bodies with DEBUG=api
2020-08-21 18:00:52 +02:00
Mislav Marohnić
33fd6b1149
Change API authentication to allow asset downloads
...
We install an HTTP middleware that adds the "Authorization" header on
every HTTP request. However, our asset download process might redirect
to a 3rd-party host (Amazon S3) and we want to allow those requests but
not require that they are authenticated.
Furthermore, we need the ability to specify the `Accept` request header
without it being overwritten by middleware, so now middleware only adds
headers that are not present in a request.
2020-08-21 18:00:52 +02:00
Mislav Marohnić
a00d927970
Add release download, upload files on create, upload retrying
2020-08-21 18:00:52 +02:00
Mislav Marohnić
4e05db97e4
Add release upload command
2020-08-20 17:59:47 +02:00
Mislav Marohnić
c4f5d6db58
Preliminary gh release commands
2020-08-19 18:25:02 +02:00
Mislav Marohnić
0cc59488a8
Merge pull request #1536 from kcubeterm/patch-1
...
Add installation step for android termux.
2020-08-17 12:38:28 +02:00
Mislav Marohnić
746e7c21a3
💅 Install docs tweaks
2020-08-17 12:37:16 +02:00
Mislav Marohnić
5534c3e302
Merge pull request #1535 from royling/fix-pr-diff
...
Fix `gh pr diff` with hostname override
2020-08-17 11:47:08 +02:00
Krishna Kanhaiya
fde470f9c5
Add installation step for android termux.
2020-08-15 19:40:52 +05:30
Roy Ling
006426331c
Fix gh pr diff with hostname override
...
Removed hardcoded url prefix in PR diff
2020-08-15 22:03:42 +08:00
Mislav Marohnić
d8c5b7bfc0
Merge pull request #1517 from cli/select-host
...
Allow explicitly setting hostname for gh operations
2020-08-14 19:08:13 +02:00
Mislav Marohnić
85f0f3aad7
Enable repo create for GHE
2020-08-14 19:02:17 +02:00
Nate Smith
ada8039671
Merge pull request #1519 from shmokmt/update-go-version
...
update go version
2020-08-14 10:15:00 -05:00
Nate Smith
8a5be0fabf
Update source.md
2020-08-14 09:30:44 -05:00
Nate Smith
66da8a2431
Update CONTRIBUTING.md
2020-08-14 09:30:30 -05:00
Shoma Okamoto
bcc1b433ab
bump go version to 1.15 in docs
2020-08-14 10:00:04 +09:00
Nate Smith
544746e1ea
Merge pull request #1501 from cli/auth-refresh
...
gh auth refresh
2020-08-13 10:18:33 -05:00
Shoma Okamoto
06b579c976
update go version
2020-08-13 22:22:27 +09:00
Brandon Wilson
0d60798ca4
Gist Create - Output Filename ( #1498 )
2020-08-13 13:38:49 +02:00
Mislav Marohnić
26a5f118c1
Merge pull request #1516 from cli/branch-placeholder-docs
...
Add documentation for ":branch" placeholder
2020-08-13 13:11:07 +02:00
vilmibm
1efd3ebb51
rebase strife
2020-08-12 12:07:36 -05:00
vilmibm
2f1e9ecc7a
review feedback
2020-08-12 12:06:14 -05:00
vilmibm
f7ee39dfeb
bonus: logout error if GITHUB_TOKEN is set
2020-08-12 12:05:56 -05:00
vilmibm
e6ae0a122b
accept additional scopes in auth flow
2020-08-12 12:05:54 -05:00
vilmibm
f1c0d04bc0
gh auth refresh
2020-08-12 12:05:27 -05:00
Mislav Marohnić
4315c09501
Ignore non-pre-authenticated hosts when parsing git remotes
...
This ensures that while having git remotes to point to either
`github.com` or authenticated GHE instances, adding another git remote
pointing to an unrelated host won't change the remote resolution in any
way, even if the unrelated remote is called `upstream` or `github` (and
thus normally took precedence).
2020-08-12 18:13:05 +02:00
Mislav Marohnić
c095a4bead
Allow explicitly specifying the hostname for gh operations
...
Accept the "HOST/OWNER/REPO" syntax or passing a full URL for both the
`--repo` flag and the GH_REPO environment variable and allow setting
GH_HOST environment variable to override just the hostname for
operations that assume "github.com" by default.
Examples:
$ gh repo clone example.org/owner/repo
$ GH_HOST=example.org gh repo clone repo
$ GH_HOST=example.org gh api user
$ GH_HOST=example.org gh gist create myfile.txt
$ gh issue list -R example.org/owner/repo
$ gh issue list -R https://example.org/owner/repo.git
$ GH_REPO=example.org/owner/repo gh issue list
2020-08-12 16:16:34 +02:00
Mislav Marohnić
7908c214df
Avoid erroring when looking up config keys for nonexistent host
2020-08-12 15:33:26 +02:00
Mislav Marohnić
e7a8b1e94e
Add documentation for ":branch" placeholder
2020-08-12 14:54:58 +02:00
Mislav Marohnić
55a13a32b4
Merge pull request #1515 from fsmiamoto/branch-substitute
...
Add `:branch` placeholder for API calls
2020-08-12 14:29:54 +02:00
Francisco Miamoto
800be370de
propagate error from closure
2020-08-12 09:18:43 -03:00
Francisco Miamoto
bba2d6d204
improve test cases
2020-08-12 09:09:37 -03:00
Francisco Miamoto
b83342856b
use factory method for branch
...
Also, improve the handling for the branch placeholder
2020-08-12 09:01:17 -03:00
Francisco Miamoto
9ebcec9aaf
handle a detached head
2020-08-12 08:52:39 -03:00
Francisco Miamoto
0c10f67cd5
add branch placeholder for api calls
2020-08-12 08:52:39 -03:00
Mislav Marohnić
291cdeddf2
Merge pull request #1500 from cli/issue-commands-isolate
...
Isolate remaining old-style commands
2020-08-12 12:35:13 +02:00
Mislav Marohnić
aa774c4993
Merge remote-tracking branch 'origin' into issue-commands-isolate
2020-08-12 12:11:01 +02:00
Nate Smith
ec2e8a86b3
Merge pull request #1495 from vilmibm/auth-status
...
auth status
2020-08-11 17:11:28 -05:00
vilmibm
37322ec333
less spacing
2020-08-11 16:45:35 -05:00
vilmibm
6c64cb8d23
remove vestigial return from HasMinimumScopes
2020-08-11 16:33:13 -05:00
vilmibm
36b2d3f6a7
ensure that config is not written
2020-08-11 16:24:08 -05:00
vilmibm
ba2b8d50a1
minor
2020-08-11 16:20:03 -05:00
vilmibm
cd32303404
auth status formatting
2020-08-11 16:16:59 -05:00
vilmibm
3a33735da8
be more helpful
2020-08-11 15:58:00 -05:00
vilmibm
f358e600ac
use SilentError
2020-08-11 15:58:00 -05:00
vilmibm
ec25b735ab
gh auth status
2020-08-11 15:58:00 -05:00