This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch fix-github-field
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/fix-github-field by this push:
new a3a31767e fix: gitlab repo id
a3a31767e is described below
commit a3a31767e4e5ae6cd0834721adb688b76d3f3ea5
Author: abeizn <[email protected]>
AuthorDate: Tue Oct 31 16:03:46 2023 +0800
fix: gitlab repo id
---
backend/plugins/gitlab/tasks/deployment_convertor.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/gitlab/tasks/deployment_convertor.go
b/backend/plugins/gitlab/tasks/deployment_convertor.go
index e1f9b87df..7022b52ae 100644
--- a/backend/plugins/gitlab/tasks/deployment_convertor.go
+++ b/backend/plugins/gitlab/tasks/deployment_convertor.go
@@ -113,7 +113,7 @@ func ConvertDeployment(taskCtx plugin.SubTaskContext)
errors.Error {
FinishedDate:
gitlabDeployment.DeployableFinishedAt,
CommitSha: gitlabDeployment.Sha,
RefName: gitlabDeployment.Ref,
- RepoId:
didgen.NewDomainIdGenerator(&models.GitlabProject{}).Generate(data.Options.ConnectionId,
data.Options.ProjectId),
+ RepoId:
projectIdGen.Generate(data.Options.ConnectionId, data.Options.ProjectId),
RepoUrl: repo.WebUrl,
}
if duration != nil {