mavam/trac-hub

support github enterprise

srl295 opened this issue · 3 comments

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

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

mavam commented

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.

Ok thanks.

Enviado desde nuestro iPhone.

El ago 29, 2016, a las 10:33 AM, Matthias Vallentin notifications@github.com 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.