lib/danger/ci_source/gitlab_ci.rb in danger-5.3.5 vs lib/danger/ci_source/gitlab_ci.rb in danger-5.4.0

- old
+ new

@@ -37,10 +37,10 @@ base_commit = env["CI_COMMIT_SHA"] client = RequestSources::GitLab.new(nil, env).client merge_requests = client.merge_requests(project_id, state: :opened) merge_request = merge_requests.auto_paginate.bsearch do |mr| - mr.sha == base_commit + mr.sha >= base_commit end merge_request.nil? ? 0 : merge_request.iid end