You've already forked woodpecker
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user