cli/api
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
..
cache.go Allow caching HTTP 204 responses 2021-03-01 16:04:34 +01:00
cache_test.go spelling: response 2020-11-21 21:43:51 -05:00
client.go Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
client_test.go Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
export_pr.go Expose more fields for PR JSON export 2021-04-14 17:28:27 +02:00
export_pr_test.go Tests for GraphQL query builder and JSON exporter 2021-04-14 18:52:02 +02:00
pull_request_test.go Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
queries_comments.go Add --json export flag for issues and pull requests 2021-04-13 20:29:31 +02:00
queries_issue.go Add issue status --json support 2021-04-13 21:26:26 +02:00
queries_org.go Ensure that we don't reuse the same deserialization struct over pagination iterations 2020-10-14 15:38:21 +02:00
queries_pr.go Expose more fields for PR JSON export 2021-04-14 17:28:27 +02:00
queries_pr_review.go Expose more fields for PR JSON export 2021-04-14 17:28:27 +02:00
queries_pr_test.go Fix pr status for GHE 2.22 and older 2021-02-18 17:46:13 +01:00
queries_repo.go Change behavior of slice flags for issue edit and pr edit commands 2021-02-12 14:42:21 -08:00
queries_repo_test.go fix: Project Argument working along with --web flag 2021-01-22 23:07:00 +01:00
queries_user.go [Feature] Create repository from template 2020-08-27 14:46:16 -04:00
query_builder.go Expose more fields for PR JSON export 2021-04-14 17:28:27 +02:00
query_builder_test.go Tests for GraphQL query builder and JSON exporter 2021-04-14 18:52:02 +02:00
reaction_groups.go Add --json export flag for issues and pull requests 2021-04-13 20:29:31 +02:00
reaction_groups_test.go Address PR comments 2020-12-08 10:24:02 -05:00