You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The important thing to address when working towards GHE compatibility #273 is the fact that our current API client will always assume a github.com host.
Off the top of my head, here is what would be involved in making our API client more flexible:
change context.AuthToken() accessor to take a hostname argument and find a token specifically for that hostname (or kick off the authentication flow)
initialize every api.Client instance with a hostname
in api.* functions that make HTTP requests, ensure that REST requests get routed to https://<hostname>/api/v3/<endpoint> and GraphQL requests to https://<hostname>/api/graphql for non-github.com hostnames
verify compatibility in pkg/cmd/api/http.go as well
Activity