cli/pkg
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
..
cmd Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
cmdutil Disallow unsupported values for --json flag 2021-04-14 19:58:58 +02:00
export Extract JSON filtering functionality from gh api 2021-04-13 16:48:21 +02:00
githubsearch Add a unified GitHub Search query builder 2021-03-23 18:52:58 +01:00
githubtemplate get everything working 2020-11-12 12:03:32 -08:00
httpmock Migrate legacy tests 2021-01-11 21:07:19 -03:00
iostreams gh run watch 2021-04-06 20:27:09 -05:00
jsoncolor Add tests for jsoncolor 2020-06-08 16:05:00 +02:00
markdown Enable emoji in markdown 2021-04-12 09:50:51 -07:00
prompt AskStubber now throws a more descriptive error when stubs do not match 2020-12-03 17:51:58 +01:00
set Have StringSet preserve original order of values 2021-04-07 19:55:09 +02:00
surveyext Comment on pull requests 2021-01-21 09:47:38 -08:00
text Improve string display width calculation 2020-09-11 11:56:54 +02:00