提交 0a1176d6 编写于 作者: D Dmitriy Zaporozhets

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

Add predictable merge requests on dev seed.
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册