Merge pull request #7897 from cirosantilli/predictable-merge-requests-dev-seed
Add predictable merge requests on dev seed.
This commit is contained in:
commit
0a1176d62d
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue