Commit a4064c14 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix create_merge_request_review_deployments

parent 8b78e8a7
...@@ -28,7 +28,9 @@ class Gitlab::Seeder::Environments ...@@ -28,7 +28,9 @@ class Gitlab::Seeder::Environments
end end
def create_merge_request_review_deployments! def create_merge_request_review_deployments!
@project.merge_requests.sample(2).map do |merge_request| @project.merge_requests.sample(4).map do |merge_request|
next unless merge_request.diff_head_sha
create_deployment!( create_deployment!(
merge_request.source_project, merge_request.source_project,
"review/#{merge_request.source_branch}", "review/#{merge_request.source_branch}",
......
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