Skip to content

Commit 521547b

Browse files
committed
Initialize enterprise client using new method
1 parent 12f1e4b commit 521547b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (c *Config) NewRESTClient(client *http.Client) (*github.Client, error) {
9494
uv3.Path = uv3.Path + "api/v3/"
9595
}
9696

97-
v3client, err := github.NewEnterpriseClient(uv3.String(), "", client)
97+
v3client, err := github.NewClient(client).WithEnterpriseURLs(uv3.String(), "")
9898
if err != nil {
9999
return nil, err
100100
}

0 commit comments

Comments
 (0)