Skip to content

Commit 211db93

Browse files
fix: github enterprise api prefix
1 parent f7e5189 commit 211db93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semrel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NewRepository(ctx context.Context, gheHost, slug, token string) (*Repositor
6767
repo.Ctx = ctx
6868
oauthClient := oauth2.NewClient(ctx, oauth2.StaticTokenSource(&oauth2.Token{AccessToken: token}))
6969
if gheHost != "" {
70-
gheUrl := fmt.Sprintf("https://%s/", gheHost)
70+
gheUrl := fmt.Sprintf("https://%s/api/v3/", gheHost)
7171
rClient, err := github.NewEnterpriseClient(gheUrl, gheUrl, oauthClient)
7272
if err != nil {
7373
return nil, err

0 commit comments

Comments
 (0)