Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to gitlab.com/gitlab-org/api/client-go for Gitlab client #156

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jippi/scm-engine

go 1.23
go 1.23.4

require (
github.com/99designs/gqlgen v0.17.62
Expand Down Expand Up @@ -28,8 +28,8 @@ require (
github.com/veqryn/slog-context v0.7.0
github.com/veqryn/slog-dedup v0.5.0
github.com/wk8/go-ordered-map/v2 v2.1.8
github.com/xanzy/go-gitlab v0.115.0
github.com/xhit/go-str2duration/v2 v2.1.0
gitlab.com/gitlab-org/api/client-go v0.118.0
golang.org/x/oauth2 v0.25.0
gopkg.in/yaml.v3 v3.0.1
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ github.com/veqryn/slog-dedup v0.5.0 h1:2pc4va3q8p7Tor1SjVvi1ZbVK/oKNPgsqG15XFEt0
github.com/veqryn/slog-dedup v0.5.0/go.mod h1:/iQU008M3qFa5RovtfiHiODxJFvxZLjWRG/qf/zKFHw=
github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc=
github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw=
github.com/xanzy/go-gitlab v0.115.0 h1:6DmtItNcVe+At/liXSgfE/DZNZrGfalQmBRmOcJjOn8=
github.com/xanzy/go-gitlab v0.115.0/go.mod h1:5XCDtM7AM6WMKmfDdOiEpyRWUqui2iS9ILfvCZ2gJ5M=
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
gitlab.com/gitlab-org/api/client-go v0.118.0 h1:qHIEw+XHt+2xuk4iZGW8fc6t+gTLAGEmTA5Bzp/brxs=
gitlab.com/gitlab-org/api/client-go v0.118.0/go.mod h1:E+X2dndIYDuUfKVP0C3jhkWvTSE00BkLbCsXTY3edDo=
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
Expand Down
2 changes: 1 addition & 1 deletion pkg/scm/gitlab/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/jippi/scm-engine/pkg/scm"
"github.com/jippi/scm-engine/pkg/state"
slogctx "github.com/veqryn/slog-context"
go_gitlab "github.com/xanzy/go-gitlab"
go_gitlab "gitlab.com/gitlab-org/api/client-go"
"golang.org/x/oauth2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/scm/gitlab/client_actioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/jippi/scm-engine/pkg/state"
"github.com/jippi/scm-engine/pkg/stdlib"
slogctx "github.com/veqryn/slog-context"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/api/client-go"
)

func (c *Client) ApplyStep(ctx context.Context, evalContext scm.EvalContext, update *scm.UpdateMergeRequestOptions, step scm.ActionStep) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scm/gitlab/client_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"

"github.com/jippi/scm-engine/pkg/scm"
go_gitlab "github.com/xanzy/go-gitlab"
go_gitlab "gitlab.com/gitlab-org/api/client-go"
)

// Helper function to accept and format both the project ID or name as project
Expand Down
2 changes: 1 addition & 1 deletion pkg/scm/gitlab/client_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/jippi/scm-engine/pkg/scm"
"github.com/jippi/scm-engine/pkg/state"
slogctx "github.com/veqryn/slog-context"
go_gitlab "github.com/xanzy/go-gitlab"
go_gitlab "gitlab.com/gitlab-org/api/client-go"
)

var _ scm.LabelClient = (*LabelClient)(nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/scm/gitlab/client_merge_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hasura/go-graphql-client"
"github.com/jippi/scm-engine/pkg/scm"
"github.com/jippi/scm-engine/pkg/state"
go_gitlab "github.com/xanzy/go-gitlab"
go_gitlab "gitlab.com/gitlab-org/api/client-go"
"golang.org/x/oauth2"
)

Expand Down
Loading