Issues with public github URL's
akatz opened this issue · comments
Avrohom Katz commented
I think they changed the url format from api.github.com/api/v3 to just api.github.com. There needs to be a change from enterprise to regular github. It worked when I hacked in the url locally. I'll try and do a proper PR in a bit.
Jim Kingdon commented
Sounds great, looking forward to a pull request.
C o u r t e n a y commented
@@@ difff
diff --git a/app/models/remote_server/github.rb b/app/models/remote_server/github.rb
index a3c9fb8..a7c4d3f 100644
--- a/app/models/remote_server/github.rb
+++ b/app/models/remote_server/github.rb
@@ -57,7 +57,7 @@ module RemoteServer
def base_api_url
params = repo.project_params
-
"https://#{params[:host]}/api/v3/repos/#{params[:username]}/#{params[:repository]}"
-
"https://api.#{params[:host]}/repos/#{params[:username]}/#{params[:repository]}"
end
def href_for_commit(sha)
@@@