lib/release_tools/security/merge_requests_batch_merger.rb
# Merges merge requests in batches.
#
# First, merges the merge request targeting master, then the ones
# targeting stable branches. If a merge request could not be
# merged, it's logged and mark as pending.
#
# If all merge requests were merged, the one targeting master is
# cherry-pick into the current auto deploy branch
Merges merge requests in batches.
First, merges the merge request targeting master, then the ones
targeting stable branches. If a merge request could not be
merged, it's logged and mark as pending.

If all merge requests were merged, the one targeting master is
cherry-pick into the current auto deploy branch
Merges merge requests in batches . First merges the merge request targeting master then the ones targeting stable branches . If a merge request could not be merged it ' s logged and mark as pending . If all merge requests were merged the one targeting master is cherry - pick into the current auto deploy branch
def merge_in_batches(security_issue)
        logger.info("Merging merge requests for: ##{security_issue.iid}")
        mr_targeting_master = security_issue.merge_request_targeting_master
        mrs_targeting_stable = security_issue.merge_requests_targeting_stable
        return if SharedStatus.dry_run?
        merge_merge_request(security_issue, mr_targeting_master)
        mrs_targeting_stable.each do |merge_request|
          merge_merge_request(security_issue, merge_request)
        end
      end
def merge_in_batches ( security_issue ) logger . info ( "Merging merge requests for: ##{security_issue.iid}" ) mr_targeting_master = security_issue . merge_request_targeting_master mrs_targeting_stable = security_issue . merge_requests_targeting_stable return if SharedStatus . dry_run? merge_merge_request ( security_issue , mr_targeting_master ) mrs_targeting_stable . each do | merge_request | merge_merge_request ( security_issue , merge_request ) end end
Merges merge requests in batches.
Merges merge requests in batches .
security_issue