Skip to content

Commit e5f6954

Browse files
committed
fix(github): support gh enterprise api
1 parent 353a7d2 commit e5f6954

File tree

1 file changed

+3
-0
lines changed
  • internal/repository/providers/github

1 file changed

+3
-0
lines changed

internal/repository/providers/github/github.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ func buildGithubClient(config credentials.Credential, clientType string) (*githu
105105
if err != nil {
106106
return nil, fmt.Errorf("error creating GitHub App client: %w", err)
107107
}
108+
if subscription == GitHubEnterprise {
109+
itr.BaseURL = apiUrl
110+
}
108111
httpClient = &nethttp.Client{Transport: itr}
109112
case "token":
110113
ts := oauth2.StaticTokenSource(&oauth2.Token{AccessToken: config.GitHubToken})

0 commit comments

Comments
 (0)