You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/09/06 09:47:26 UTC

[incubator-devlake] 03/03: feat: github add cicd_pipeline_repos

This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 925db4d9d40ecbaa5d1be9b596a1551f5f05fe73
Author: abeizn <zi...@merico.dev>
AuthorDate: Tue Sep 6 17:29:27 2022 +0800

    feat: github add cicd_pipeline_repos
---
 plugins/gitlab/tasks/pipeline_convertor.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/gitlab/tasks/pipeline_convertor.go b/plugins/gitlab/tasks/pipeline_convertor.go
index c5579f71..633dd831 100644
--- a/plugins/gitlab/tasks/pipeline_convertor.go
+++ b/plugins/gitlab/tasks/pipeline_convertor.go
@@ -18,7 +18,6 @@ limitations under the License.
 package tasks
 
 import (
-	"fmt"
 	"reflect"
 	"time"
 
@@ -74,7 +73,8 @@ func ConvertPipelines(taskCtx core.SubTaskContext) error {
 				DomainEntity: domainlayer.DomainEntity{
 					Id: pipelineIdGen.Generate(data.Options.ConnectionId, gitlabPipeline.GitlabId),
 				},
-				Name: fmt.Sprintf("%d", gitlabPipeline.GitlabId),
+				Name: didgen.NewDomainIdGenerator(&gitlabModels.GitlabProject{}).
+					Generate(data.Options.ConnectionId, gitlabPipeline.ProjectId),
 				Result: devops.GetResult(&devops.ResultRule{
 					Failed:  []string{"failed"},
 					Abort:   []string{"canceled", "skipped"},