cli/pkg/cmd
Mislav Marohnić ac348b0dec Fix requesting REST sub-resources on GHE
GitHub REST resources typically return full URLs to fetch related
resources at. We used to parse those URLs to find just the path portion
and pass that in to the `REST()` function, which only accepted paths. By
doing so, we are essential de-constructing a URL just to re-assemble it
again. While re-assembling it for Enterprise, though, we would
accidentally inject an extra `api/v3/` prefix where one was not needed.

The solution is just to use raw URLs as reported by the REST API with
no modifications. This extends the `REST()` function to accept full URLs
in addition to just paths to resources.
2021-04-19 12:41:09 +02:00
..
actions unhide actions commands 2021-04-13 22:08:06 -05:00
alias fix typo in docs of alias command 2021-03-08 15:11:31 +01:00
api Add gh help formatting topic & link to it from commands with JSON output 2021-04-14 18:27:15 +02:00
auth Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
completion Improve completion docs for bash, zsh, fish 2020-12-16 16:57:28 +01:00
config Fix USAGE help for some commands 2020-11-13 10:10:53 -03:00
factory Merge pull request #3279 from cli/browser-refactor 2021-03-30 16:54:59 +02:00
gist Merge pull request #3279 from cli/browser-refactor 2021-03-30 16:54:59 +02:00
issue Fix whitespace formatting of issue/pr view help text 2021-04-14 20:04:47 +02:00
pr Fix whitespace formatting of issue/pr view help text 2021-04-14 20:04:47 +02:00
release Pass web browser to each individual command 2021-03-19 21:22:37 +01:00
repo remove previous emoji workaround 2021-04-12 09:56:00 -07:00
root Add gh help formatting topic & link to it from commands with JSON output 2021-04-14 18:27:15 +02:00
run Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
secret Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
ssh-key Merge pull request #3200 from cli/table-widths 2021-03-30 16:54:13 +02:00
version Fix link in version output 2020-12-17 12:37:22 +01:00
workflow placeholder consistency 2021-04-14 11:17:12 -05:00