octokit / go-octokit

Simple Go wrapper for the GitHub API
https://github.com/octokit/go-octokit
MIT License
258 stars 79 forks source link

Github Enterprise doesn't work #143

Closed diasjorge closed 5 years ago

diasjorge commented 7 years ago

When you try to create a client to connect to:

github.enterprisecompany.com/api/v3 because of the way the urls are generated it makes requests to github.enterprisecompany.com/orgs and omits the prefix.

I found the problem here: https://github.com/jingweno/go-sawyer/blob/master/sawyer.go#L51

I guess this happens since it tries to create an absolute url.

diasjorge commented 5 years ago

Closed due to lack of comments