Commit 0a1176d6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7897 from cirosantilli/predictable-merge-requests-dev-seed

Add predictable merge requests on dev seed.
parents 35152e3c 1ba26184
...@@ -20,4 +20,22 @@ Gitlab::Seeder.quiet do ...@@ -20,4 +20,22 @@ Gitlab::Seeder.quiet do
print '.' print '.'
end end
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 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