square / kochiku

Shard your builds for fun and profit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with public github URL's

akatz opened this issue · comments

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.

Sounds great, looking forward to a pull request.

@@@ 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)
    @@@