octokit / octokit.js

The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno.
MIT License
6.94k stars 1.02k forks source link

Github Enterprise not supported #105

Closed Almad closed 10 years ago

Almad commented 10 years ago

As per https://enterprise.github.com/help/articles/using-the-api and my own experiments, API endpoints on github enterprise are not present on some host (like api.github.com), but instead routes are prefixed with /api/v3/ against base hosts.

Thus, initializing githubApi with host: "custom.tld" does not work.

kuba-kubula commented 10 years ago

ping @mikedeboer ?

calmdev commented 10 years ago

I can verify that this is working for me @ http://github.fit.edu/

I'm using v0.1.15

Almad commented 10 years ago

I think (haven't tested yet) this is fixed via #106

calmdev commented 10 years ago

Yeah, I am using it with a prefix of /api/v3