cli/pkg/cmd/secret
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
..
list Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
remove Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02:00
set Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02:00
shared use type for Visibility 2020-12-10 15:11:08 -08:00
secret.go print success messages 2020-12-09 17:37:13 -08:00