Skip to content

Commit

Permalink
fix: migrate deprecated github enterprise client
Browse files Browse the repository at this point in the history
  • Loading branch information
karlderkaefer committed Jun 1, 2024
1 parent 48e3a9a commit 1922260
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions provider/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ func NewGithubClient(ctx context.Context, cfg config.NotifierConfig) (*GithubCli

switch cfg.Vcs {
case config.VcsGithubEnterprise:
c.Client, err = github.NewEnterpriseClient(
c.Client, err = github.NewClient(tokenClient).WithEnterpriseURLs(
fmt.Sprintf("https://%s/api/v3", cfg.GithubHost),
fmt.Sprintf("https://%s/api/upload", cfg.GithubHost),
tokenClient,
)
logrus.Infof("Using GitHub Enterprise Client: %s", cfg.GithubHost)
default:
Expand Down

0 comments on commit 1922260

Please sign in to comment.