Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support github enterprise #4

Open
srl295 opened this issue Aug 25, 2016 · 3 comments
Open

support github enterprise #4

srl295 opened this issue Aug 25, 2016 · 3 comments

Comments

@srl295
Copy link
Contributor

srl295 commented Aug 25, 2016

where SECRETHOSTNAME should be a variable or something.

   def initialize(user, pass, repo)
     @user = user
     $logger.debug("#{@user} connects to github repo '#{repo}'")
+    Octokit.configure do |c|
+      c.api_endpoint = "https://SECRETHOSTNAME/api/v3/"
+    end

details: https://github.com/octokit/octokit.rb#working-with-github-enterprise

@srl295
Copy link
Contributor Author

srl295 commented Aug 25, 2016

also in enterprise mode, I had to comment out rate_check because apparently rate checks aren't enterprisey.

@mavam
Copy link
Owner

mavam commented Aug 29, 2016

It looks like the best way to support this is simply via an api_endpoint variable in the configuration file, where the default is standard github.

If you you provide a PR for this, I'll merge it right away.

@srl295
Copy link
Contributor Author

srl295 commented Aug 30, 2016

Ok thanks.

Enviado desde nuestro iPhone.

El ago 29, 2016, a las 10:33 AM, Matthias Vallentin [email protected] escribió:

It looks like the best way to support this is simply via an api_endpoint variable in the configuration file, where the default is standard github.

If you you provide a PR for this, I'll merge it right away.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants