[api] Fix GraphQL requests made to Enterprise hosts
This invocation would fail: GITHUB_HOST=example.com hub api graphql ... This is because hub would erroneously try to POST to `example.com/api/v3/graphql` instead of `example.com/api/graphql`. This applies a workaround that gets rid of the "v3" portion for requests to "graphql" endpoint. Fixes #2287
Showing
想要评论请 注册 或 登录