You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/01/09 06:42:39 UTC

(incubator-devlake) branch main updated: fix: github pipelines no data (#6770)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new bb3668ff4 fix: github pipelines no data (#6770)
bb3668ff4 is described below

commit bb3668ff4b13dc162818adc5147c296e2253bb25
Author: abeizn <zi...@merico.dev>
AuthorDate: Tue Jan 9 14:42:32 2024 +0800

    fix: github pipelines no data (#6770)
---
 backend/plugins/gitlab/tasks/pipeline_detail_collector.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/plugins/gitlab/tasks/pipeline_detail_collector.go b/backend/plugins/gitlab/tasks/pipeline_detail_collector.go
index 88605af66..ebafdc2c0 100644
--- a/backend/plugins/gitlab/tasks/pipeline_detail_collector.go
+++ b/backend/plugins/gitlab/tasks/pipeline_detail_collector.go
@@ -93,7 +93,7 @@ func GetPipelinesIterator(taskCtx plugin.SubTaskContext, collectorWithState *hel
 			data.Options.ProjectId, data.Options.ConnectionId,
 		),
 	}
-	if collectorWithState.Since != nil {
+	if collectorWithState.Since != nil && collectorWithState.IsIncremental {
 		clauses = append(clauses, dal.Where("gitlab_updated_at > ?", *collectorWithState.Since))
 	}
 	// construct the input iterator