Skip to content

Commit 6ebc0ea

Browse files
authored
fix: support gh enterprise api (#613)
1 parent c0784c6 commit 6ebc0ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/utils/gitprovider/github/github.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ func (g *Github) Init() error {
8484
if err != nil {
8585
return fmt.Errorf("error creating GitHub App client: %w", err)
8686
}
87+
if subscription == GitHubEnterprise {
88+
itr.BaseURL = apiUrl
89+
}
8790
g.GitHubClientType = "app"
8891
httpClient = &nethttp.Client{Transport: itr}
8992
g.itr = itr

0 commit comments

Comments
 (0)