nex3 / magithub

Magit + GitHub
42 stars 13 forks source link

Accept Github Enterprise instances #9

Open piojo-zz opened 11 years ago

piojo-zz commented 11 years ago

Sometimes I want to issue pull request to my employer's GH instance.

With the hub Ruby gem I can pass the GITHUB_HOST environment variable and run hub pull-request.

It would be awesome if I could get a similar behaviour from within Emacs.

jonnay commented 11 years ago

I just checked, and it looks like enterprise will only work with v3 of the github API. So as soon as magithub supports that, then enterprise should be painless.

Check this for into: https://support.enterprise.github.com/entries/21391237-using-the-api

Basically you would just need to set magithub-api-base to your enterprise url, and tack /api/v3

There is a bit of discussion on the migration here: https://github.com/nex3/magithub/issues/5