Commit f8f35c11 authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-04-11

parents 4720da84 6b246360
...@@ -28,7 +28,11 @@ class Gitlab::Seeder::Environments ...@@ -28,7 +28,11 @@ class Gitlab::Seeder::Environments
end end
def create_merge_request_review_deployments! def create_merge_request_review_deployments!
@project.merge_requests.sample(4).map do |merge_request| @project
.merge_requests
.select { |mr| mr.source_branch.match(/\p{Alnum}+/) }
.sample(4)
.each do |merge_request|
next unless merge_request.diff_head_sha next unless merge_request.diff_head_sha
create_deployment!( create_deployment!(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment