1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-12-17 21:57:29 +02:00

setting the github client API url for github enterprise

This commit is contained in:
Brad Rydzewski
2014-08-03 09:55:45 -07:00
parent 30767bdfa7
commit aec5d06ff1
2 changed files with 5 additions and 0 deletions

View File

@@ -165,6 +165,7 @@ func (g *Github) GetLogin(w http.ResponseWriter, r *http.Request) (*remote.Login
// create the client
client := github.New(token.AccessToken)
client.ApiUrl = g.API
// get the user information
user, err := client.Users.Current()