From f03738e818f910744b695b701054f11ab5958520 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 22 Dec 2023 21:19:46 +0100 Subject: [PATCH] gitlab cast ForgeRemoteID to string --- server/forge/gitlab/gitlab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/forge/gitlab/gitlab.go b/server/forge/gitlab/gitlab.go index 649f1c978c..e679b7caaf 100644 --- a/server/forge/gitlab/gitlab.go +++ b/server/forge/gitlab/gitlab.go @@ -234,7 +234,7 @@ func (g *GitLab) getProject(ctx context.Context, client *gitlab.Client, mr *mode err error ) if mr != nil && mr.ForgeRemoteID.IsValid() { - repo, _, err = client.Projects.GetProject(mr.ForgeRemoteID, nil, gitlab.WithContext(ctx)) + repo, _, err = client.Projects.GetProject(string(mr.ForgeRemoteID), nil, gitlab.WithContext(ctx)) } else { repo, _, err = client.Projects.GetProject(fmt.Sprintf("%s/%s", owner, name), nil, gitlab.WithContext(ctx)) }