Skip to content

Commit 7db78c0

Browse files
committed
Use new library for go-gitlab
it's now being moved to: https://gitlab.com/gitlab-org/api/client-go Fixes 1864 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent b1ea0c2 commit 7db78c0

File tree

164 files changed

+787
-376
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+787
-376
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require (
3131
github.com/spf13/cobra v1.8.1
3232
github.com/stretchr/testify v1.9.0
3333
github.com/tektoncd/pipeline v0.65.1
34-
github.com/xanzy/go-gitlab v0.113.0
34+
gitlab.com/gitlab-org/api/client-go v0.116.0
3535
go.opencensus.io v0.24.0
3636
go.uber.org/zap v1.27.0
3737
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,15 @@ github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6Kllzaw
470470
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
471471
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
472472
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
473-
github.com/xanzy/go-gitlab v0.113.0 h1:v5O4R+YZbJGxKqa9iIZxjMyeKkMKBN8P6sZsNl+YckM=
474-
github.com/xanzy/go-gitlab v0.113.0/go.mod h1:wKNKh3GkYDMOsGmnfuX+ITCmDuSDWFO0G+C4AygL9RY=
475473
github.com/xlzd/gotp v0.1.0 h1:37blvlKCh38s+fkem+fFh7sMnceltoIEBYTVXyoa5Po=
476474
github.com/xlzd/gotp v0.1.0/go.mod h1:ndLJ3JKzi3xLmUProq4LLxCuECL93dG9WASNLpHz8qg=
477475
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
478476
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
479477
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
480478
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
481479
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
480+
gitlab.com/gitlab-org/api/client-go v0.116.0 h1:Dy534gtZPMrnm3fAcmQRMadrcoUyFO4FQ4rXlSAdHAw=
481+
gitlab.com/gitlab-org/api/client-go v0.116.0/go.mod h1:B29OfnZklmaoiR7uHANh9jTyfWEgmXvZLVEnosw2Dx0=
482482
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
483483
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
484484
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=

pkg/cli/webhook/gitlab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/openshift-pipelines/pipelines-as-code/pkg/cli"
1111
"github.com/openshift-pipelines/pipelines-as-code/pkg/cli/prompt"
1212
"github.com/openshift-pipelines/pipelines-as-code/pkg/random"
13-
"github.com/xanzy/go-gitlab"
13+
gitlab "gitlab.com/gitlab-org/api/client-go"
1414
)
1515

1616
type gitLabConfig struct {

pkg/matcher/annotation_matcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
ghtesthelper "github.com/openshift-pipelines/pipelines-as-code/pkg/test/github"
2828
testnewrepo "github.com/openshift-pipelines/pipelines-as-code/pkg/test/repository"
2929
tektonv1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1"
30-
"github.com/xanzy/go-gitlab"
30+
gitlab "gitlab.com/gitlab-org/api/client-go"
3131
"go.uber.org/zap"
3232
zapobserver "go.uber.org/zap/zaptest/observer"
3333
"gotest.tools/v3/assert"

pkg/provider/gitlab/acl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/openshift-pipelines/pipelines-as-code/pkg/acl"
99
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/info"
10-
"github.com/xanzy/go-gitlab"
10+
gitlab "gitlab.com/gitlab-org/api/client-go"
1111
)
1212

1313
// IsAllowedOwnersFile get the owner files (OWNERS, OWNERS_ALIASES) from main branch

pkg/provider/gitlab/detect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77

88
"github.com/openshift-pipelines/pipelines-as-code/pkg/provider"
9-
"github.com/xanzy/go-gitlab"
9+
gitlab "gitlab.com/gitlab-org/api/client-go"
1010
"go.uber.org/zap"
1111
)
1212

pkg/provider/gitlab/detect_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
thelp "github.com/openshift-pipelines/pipelines-as-code/pkg/provider/gitlab/test"
99
"github.com/openshift-pipelines/pipelines-as-code/pkg/test/logger"
10-
"github.com/xanzy/go-gitlab"
10+
gitlab "gitlab.com/gitlab-org/api/client-go"
1111
"gotest.tools/v3/assert"
1212
)
1313

pkg/provider/gitlab/gitlab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/info"
1818
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/triggertype"
1919
"github.com/openshift-pipelines/pipelines-as-code/pkg/provider"
20-
"github.com/xanzy/go-gitlab"
20+
gitlab "gitlab.com/gitlab-org/api/client-go"
2121
"go.uber.org/zap"
2222
)
2323

pkg/provider/gitlab/gitlab_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
thelp "github.com/openshift-pipelines/pipelines-as-code/pkg/provider/gitlab/test"
1919
testclient "github.com/openshift-pipelines/pipelines-as-code/pkg/test/clients"
2020
"github.com/openshift-pipelines/pipelines-as-code/pkg/test/logger"
21-
"github.com/xanzy/go-gitlab"
21+
gitlab "gitlab.com/gitlab-org/api/client-go"
2222
"go.uber.org/zap"
2323
zapobserver "go.uber.org/zap/zaptest/observer"
2424
"gotest.tools/v3/assert"

pkg/provider/gitlab/parse_payload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/openshift-pipelines/pipelines-as-code/pkg/params"
1212
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/info"
1313
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/triggertype"
14-
"github.com/xanzy/go-gitlab"
14+
gitlab "gitlab.com/gitlab-org/api/client-go"
1515
)
1616

1717
func (v *Provider) ParsePayload(_ context.Context, _ *params.Run, request *http.Request,

pkg/provider/gitlab/parse_payload_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/openshift-pipelines/pipelines-as-code/pkg/params"
1010
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/info"
1111
thelp "github.com/openshift-pipelines/pipelines-as-code/pkg/provider/gitlab/test"
12-
"github.com/xanzy/go-gitlab"
12+
gitlab "gitlab.com/gitlab-org/api/client-go"
1313
"gotest.tools/v3/assert"
1414
rtesting "knative.dev/pkg/reconciler/testing"
1515
)

pkg/provider/gitlab/test/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/xanzy/go-gitlab"
12+
gitlab "gitlab.com/gitlab-org/api/client-go"
1313
"gotest.tools/v3/assert"
1414
)
1515

test/gitlab_delete_tag_event_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
tgitlab "github.com/openshift-pipelines/pipelines-as-code/test/pkg/gitlab"
1414
twait "github.com/openshift-pipelines/pipelines-as-code/test/pkg/wait"
1515
"github.com/tektoncd/pipeline/pkg/names"
16-
"github.com/xanzy/go-gitlab"
16+
gitlab "gitlab.com/gitlab-org/api/client-go"
1717
"gotest.tools/v3/assert"
1818
)
1919

test/gitlab_merge_request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/scm"
2121
twait "github.com/openshift-pipelines/pipelines-as-code/test/pkg/wait"
2222
"github.com/tektoncd/pipeline/pkg/names"
23-
clientGitlab "github.com/xanzy/go-gitlab"
23+
clientGitlab "gitlab.com/gitlab-org/api/client-go"
2424
"gotest.tools/v3/assert"
2525
corev1 "k8s.io/api/core/v1"
2626
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

test/pkg/gitlab/crd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/openshift-pipelines/pipelines-as-code/pkg/params"
99
pacrepo "github.com/openshift-pipelines/pipelines-as-code/test/pkg/repository"
1010
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/secret"
11-
"github.com/xanzy/go-gitlab"
11+
gitlab "gitlab.com/gitlab-org/api/client-go"
1212
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1313
)
1414

test/pkg/gitlab/setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/openshift-pipelines/pipelines-as-code/pkg/provider/gitlab"
1313
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/options"
1414
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/repository"
15-
gitlab2 "github.com/xanzy/go-gitlab"
15+
gitlab2 "gitlab.com/gitlab-org/api/client-go"
1616
"gotest.tools/v3/assert"
1717
)
1818

test/pkg/gitlab/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
ghlib "github.com/xanzy/go-gitlab"
7+
ghlib "gitlab.com/gitlab-org/api/client-go"
88
)
99

1010
func CreateMR(client *ghlib.Client, pid int, sourceBranch, targetBranch, title string) (int, error) {

vendor/github.com/xanzy/go-gitlab/README.md

Lines changed: 0 additions & 208 deletions
This file was deleted.

0 commit comments

Comments
 (0)