Skip to content

Commit ecb9610

Browse files
authored
Merge pull request #307 from erikgb/gitlab-client-go
Migrate to new GitLab client-go
2 parents 983e325 + feee6bc commit ecb9610

25 files changed

+26
-26
lines changed

gitlab/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package gitlab
1818

1919
import (
2020
"github.com/fluxcd/go-git-providers/gitprovider"
21-
gogitlab "github.com/xanzy/go-gitlab"
21+
gogitlab "gitlab.com/gitlab-org/api/client-go"
2222
)
2323

2424
const (

gitlab/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"net/url"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
25-
"github.com/xanzy/go-gitlab"
25+
"gitlab.com/gitlab-org/api/client-go"
2626
)
2727

2828
// ProviderID is the provider ID for GitLab.

gitlab/client_organization_teams.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121

2222
"github.com/fluxcd/go-git-providers/gitprovider"
23-
"github.com/xanzy/go-gitlab"
23+
"gitlab.com/gitlab-org/api/client-go"
2424
)
2525

2626
// TeamsClient implements the gitprovider.TeamsClient interface.

gitlab/client_repositories_org.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"errors"
2222

2323
"github.com/fluxcd/go-git-providers/gitprovider"
24-
"github.com/xanzy/go-gitlab"
24+
"gitlab.com/gitlab-org/api/client-go"
2525
)
2626

2727
// OrgRepositoriesClient implements the gitprovider.OrgRepositoriesClient interface.

gitlab/client_repository_branch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121

2222
"github.com/fluxcd/go-git-providers/gitprovider"
23-
"github.com/xanzy/go-gitlab"
23+
"gitlab.com/gitlab-org/api/client-go"
2424
)
2525

2626
// BranchClient implements the gitprovider.BranchClient interface.

gitlab/client_repository_commit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222

2323
"github.com/fluxcd/go-git-providers/gitprovider"
24-
"github.com/xanzy/go-gitlab"
24+
"gitlab.com/gitlab-org/api/client-go"
2525
)
2626

2727
// CommitClient implements the gitprovider.CommitClient interface.

gitlab/client_repository_deploykey.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"fmt"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
25-
"github.com/xanzy/go-gitlab"
25+
"gitlab.com/gitlab-org/api/client-go"
2626
)
2727

2828
// DeployKeyClient implements the gitprovider.DeployKeyClient interface.

gitlab/client_repository_deploytoken.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"fmt"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
25-
"github.com/xanzy/go-gitlab"
25+
"gitlab.com/gitlab-org/api/client-go"
2626
)
2727

2828
// DeployTokenClient implements the gitprovider.DeployTokenClient interface.

gitlab/client_repository_file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424

2525
"github.com/fluxcd/go-git-providers/gitprovider"
26-
"github.com/xanzy/go-gitlab"
26+
"gitlab.com/gitlab-org/api/client-go"
2727
)
2828

2929
// FileClient implements the gitprovider.FileClient interface.

gitlab/client_repository_pullrequest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"time"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
25-
"github.com/xanzy/go-gitlab"
25+
"gitlab.com/gitlab-org/api/client-go"
2626
)
2727

2828
// mergeStatusChecking indicates that gitlab has not yet asynchronously updated the merge status for a merge request

gitlab/client_repository_tree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222

2323
"github.com/fluxcd/go-git-providers/gitprovider"
24-
"github.com/xanzy/go-gitlab"
24+
"gitlab.com/gitlab-org/api/client-go"
2525
)
2626

2727
// TreeClient implements the gitprovider.TreeClient interface.

gitlab/example_organization_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/fluxcd/go-git-providers/gitlab"
1212
"github.com/fluxcd/go-git-providers/gitprovider"
13-
gogitlab "github.com/xanzy/go-gitlab"
13+
gogitlab "gitlab.com/gitlab-org/api/client-go"
1414
)
1515

1616
// checkErr is used for examples in this repository.

gitlab/example_repository_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/fluxcd/go-git-providers/gitlab"
1111
"github.com/fluxcd/go-git-providers/gitprovider"
12-
gogitlab "github.com/xanzy/go-gitlab"
12+
gogitlab "gitlab.com/gitlab-org/api/client-go"
1313
)
1414

1515
func ExampleOrgRepositoriesClient_Get() {

gitlab/gitlabclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
25-
"github.com/xanzy/go-gitlab"
25+
"gitlab.com/gitlab-org/api/client-go"
2626
)
2727

2828
// gitlabClientImpl is a wrapper around *github.Client, which implements higher-level methods,

gitlab/integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
"github.com/gregjones/httpcache"
3838
. "github.com/onsi/ginkgo"
3939
. "github.com/onsi/gomega"
40-
"github.com/xanzy/go-gitlab"
40+
"gitlab.com/gitlab-org/api/client-go"
4141

4242
"github.com/fluxcd/go-git-providers/gitprovider"
4343
testutils "github.com/fluxcd/go-git-providers/gitprovider/testutils"

gitlab/resource_commit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package gitlab
1818

1919
import (
20-
"github.com/xanzy/go-gitlab"
20+
"gitlab.com/gitlab-org/api/client-go"
2121

2222
"github.com/fluxcd/go-git-providers/gitprovider"
2323
)

gitlab/resource_deploykey.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"fmt"
2323
"reflect"
2424

25-
"github.com/xanzy/go-gitlab"
25+
"gitlab.com/gitlab-org/api/client-go"
2626

2727
"github.com/fluxcd/go-git-providers/gitprovider"
2828
"github.com/fluxcd/go-git-providers/validation"

gitlab/resource_deploytoken.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222
"reflect"
2323

24-
"github.com/xanzy/go-gitlab"
24+
"gitlab.com/gitlab-org/api/client-go"
2525

2626
"github.com/fluxcd/go-git-providers/gitprovider"
2727
"github.com/fluxcd/go-git-providers/validation"

gitlab/resource_organization.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package gitlab
1818

1919
import (
20-
"github.com/xanzy/go-gitlab"
20+
"gitlab.com/gitlab-org/api/client-go"
2121

2222
"github.com/fluxcd/go-git-providers/gitprovider"
2323
"github.com/fluxcd/go-git-providers/validation"

gitlab/resource_pullrequest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package gitlab
1818

1919
import (
2020
"github.com/fluxcd/go-git-providers/gitprovider"
21-
"github.com/xanzy/go-gitlab"
21+
"gitlab.com/gitlab-org/api/client-go"
2222
)
2323

2424
// The value of the "State" field of a gitlab merge request after it has been merged"

gitlab/resource_repository.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"errors"
2222

2323
"github.com/google/go-cmp/cmp"
24-
gogitlab "github.com/xanzy/go-gitlab"
24+
gogitlab "gitlab.com/gitlab-org/api/client-go"
2525

2626
"github.com/fluxcd/go-git-providers/gitprovider"
2727
)

gitlab/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"strings"
88

9-
"github.com/xanzy/go-gitlab"
9+
"gitlab.com/gitlab-org/api/client-go"
1010

1111
"github.com/fluxcd/go-git-providers/gitprovider"
1212
"github.com/fluxcd/go-git-providers/validation"

gitlab/util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
2525
"github.com/fluxcd/go-git-providers/validation"
26-
"github.com/xanzy/go-gitlab"
26+
"gitlab.com/gitlab-org/api/client-go"
2727
)
2828

2929
func Test_validateAPIObject(t *testing.T) {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/ktrysmt/go-bitbucket v0.9.81
1919
github.com/onsi/ginkgo v1.16.5
2020
github.com/onsi/gomega v1.36.1
21-
github.com/xanzy/go-gitlab v0.114.0
21+
gitlab.com/gitlab-org/api/client-go v0.116.0
2222
go.uber.org/zap v1.27.0
2323
golang.org/x/crypto v0.30.0
2424
golang.org/x/oauth2 v0.24.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
154154
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
155155
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
156156
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
157-
github.com/xanzy/go-gitlab v0.114.0 h1:0wQr/KBckwrZPfEMjRqpUz0HmsKKON9UhCYv9KDy19M=
158-
github.com/xanzy/go-gitlab v0.114.0/go.mod h1:wKNKh3GkYDMOsGmnfuX+ITCmDuSDWFO0G+C4AygL9RY=
159157
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
160158
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
161159
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
162160
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
161+
gitlab.com/gitlab-org/api/client-go v0.116.0 h1:Dy534gtZPMrnm3fAcmQRMadrcoUyFO4FQ4rXlSAdHAw=
162+
gitlab.com/gitlab-org/api/client-go v0.116.0/go.mod h1:B29OfnZklmaoiR7uHANh9jTyfWEgmXvZLVEnosw2Dx0=
163163
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
164164
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
165165
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=

0 commit comments

Comments
 (0)