Skip to content

Commit 24c83bf

Browse files
committed
Merge branch 'fix/gitlab-mergecommit' into 'develop'
Fix - collect all merge commits (Revert change apache#7996) See merge request cdengo/devlake!1
2 parents d821cbc + 142dd08 commit 24c83bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backend/plugins/gitlab/tasks/shared.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,9 @@ func GetMergeRequestsIterator(taskCtx plugin.SubTaskContext, apiCollector *api.S
187187
clauses := []dal.Clause{
188188
dal.Select("gmr.gitlab_id, gmr.iid"),
189189
dal.From("_tool_gitlab_merge_requests gmr"),
190-
// collect only openning merge request's notes and commits to speed up the process
191190
dal.Where(
192-
`gmr.project_id = ? and gmr.connection_id = ? AND state = ?`,
193-
data.Options.ProjectId, data.Options.ConnectionId, "opened",
191+
`gmr.project_id = ? and gmr.connection_id = ?`,
192+
data.Options.ProjectId, data.Options.ConnectionId,
194193
),
195194
}
196195
if apiCollector != nil {

0 commit comments

Comments
 (0)