Skip to content

Commit

Permalink
Initialize enterprise client using new method
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sama committed Sep 15, 2023
1 parent 12f1e4b commit 521547b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *Config) NewRESTClient(client *http.Client) (*github.Client, error) {
uv3.Path = uv3.Path + "api/v3/"
}

v3client, err := github.NewEnterpriseClient(uv3.String(), "", client)
v3client, err := github.NewClient(client).WithEnterpriseURLs(uv3.String(), "")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 521547b

Please sign in to comment.