diff --git a/backend/plugins/gitlab/tasks/shared.go b/backend/plugins/gitlab/tasks/shared.go index e8f8c650bdb..3c100d7dd2e 100644 --- a/backend/plugins/gitlab/tasks/shared.go +++ b/backend/plugins/gitlab/tasks/shared.go @@ -189,8 +189,8 @@ func GetMergeRequestsIterator(taskCtx plugin.SubTaskContext, apiCollector *api.S dal.From("_tool_gitlab_merge_requests gmr"), // collect only openning merge request's notes and commits to speed up the process dal.Where( - `gmr.project_id = ? and gmr.connection_id = ? AND state = ?`, - data.Options.ProjectId, data.Options.ConnectionId, "opened", + `gmr.project_id = ? and gmr.connection_id = ?`, + data.Options.ProjectId, data.Options.ConnectionId, ), } if apiCollector != nil {