Closed samcoe closed 2 years ago
This PR adds additional API functionality that is necessary for gh to utilize go-gh.
gh
go-gh
optionsNeedResolution
api.HandleHTTPError
RESTClient.Raw
pkg/api/http.go
pkg/api/errors.go
Based on top of https://github.com/cli/go-gh/pull/30 Corresponding gh PR https://github.com/cli/cli/pull/5614 that uses these changes. cc https://github.com/cli/cli/issues/5560
This PR adds additional API functionality that is necessary for
gh
to utilizego-gh
.optionsNeedResolution
to avoid unnecessary config loadingapi.HandleHTTPError
to allow users access to use our error handlingRESTClient.Raw
function to allow users direct access to an http responsepkg/api/http.go
topkg/api/errors.go
to more accurately reflect its contentsBased on top of https://github.com/cli/go-gh/pull/30 Corresponding
gh
PR https://github.com/cli/cli/pull/5614 that uses these changes. cc https://github.com/cli/cli/issues/5560