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

Add predictable merge requests on dev seed.
This commit is contained in:
Dmitriy Zaporozhets 2014-09-29 17:46:08 +03:00
commit 0a1176d62d

View file

@ -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