Skip to content

Commit 2b3dbc7

Browse files
authored
fix import (#2137)
1 parent 86729ac commit 2b3dbc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ee/drift/utils/github.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"github.com/bradleyfalzon/ghinstallation/v2"
88
"github.com/diggerhq/digger/backend/models"
9-
github3 "github.com/diggerhq/digger/ee/backend/providers/github"
9+
"github.com/diggerhq/digger/backend/utils"
1010
github2 "github.com/diggerhq/digger/libs/ci/github"
1111
dg_configuration "github.com/diggerhq/digger/libs/digger_config"
1212
utils2 "github.com/diggerhq/digger/libs/git_utils"
@@ -19,7 +19,7 @@ import (
1919
"path"
2020
)
2121

22-
func GetGithubClient(gh github3.DiggerGithubEEClientProvider, installationId int64, repoFullName string) (*github.Client, *string, error) {
22+
func GetGithubClient(gh utils.GithubClientProvider, installationId int64, repoFullName string) (*github.Client, *string, error) {
2323
slog.Debug("Getting GitHub client",
2424
"installationId", installationId,
2525
"repoFullName", repoFullName)
@@ -33,7 +33,7 @@ func GetGithubClient(gh github3.DiggerGithubEEClientProvider, installationId int
3333
return ghClient, token, err
3434
}
3535

36-
func GetGithubService(gh github3.DiggerGithubEEClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string) (*github2.GithubService, *string, error) {
36+
func GetGithubService(gh utils.GithubClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string) (*github2.GithubService, *string, error) {
3737
slog.Debug("getting github client", "installationId", installationId, "repoFullName", repoFullName)
3838
ghClient, token, err := GetGithubClient(gh, installationId, repoFullName)
3939
if err != nil {
@@ -94,7 +94,7 @@ func (gh DiggerGithubRealClientProvider) Get(githubAppId int64, installationId i
9494
return ghClient, &token, nil
9595
}
9696

97-
func GetDiggerConfigForBranch(gh github3.DiggerGithubEEClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string, cloneUrl string, branch string) (string, *github2.GithubService, *dg_configuration.DiggerConfig, graph.Graph[string, dg_configuration.Project], error) {
97+
func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string, cloneUrl string, branch string) (string, *github2.GithubService, *dg_configuration.DiggerConfig, graph.Graph[string, dg_configuration.Project], error) {
9898
ghService, token, err := GetGithubService(gh, installationId, repoFullName, repoOwner, repoName)
9999
if err != nil {
100100
log.Printf("Error getting github service: %v", err)

0 commit comments

Comments
 (0)