Commit 1ba26184 authored by Ciro Santilli's avatar Ciro Santilli

Add predictable merge requests on dev seed.

parent 376e004c
......@@ -20,4 +20,22 @@ Gitlab::Seeder.quiet do
print '.'
end
end
project = Project.find_with_namespace('gitlab-org/testme')
params = {
source_branch: 'feature',
target_branch: 'master',
title: 'Can be automatically merged'
}
MergeRequests::CreateService.new(project, User.admins.first, params).execute
print '.'
params = {
source_branch: 'feature_conflict',
target_branch: 'feature',
title: 'Cannot be automatically merged'
}
MergeRequests::CreateService.new(project, User.admins.first, params).execute
print '.'
end
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