Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/10_merge_requests.rb')
-rw-r--r--db/fixtures/development/10_merge_requests.rb41
1 files changed, 0 insertions, 41 deletions
diff --git a/db/fixtures/development/10_merge_requests.rb b/db/fixtures/development/10_merge_requests.rb
deleted file mode 100644
index f9b2fd8b05f..00000000000
--- a/db/fixtures/development/10_merge_requests.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-Gitlab::Seeder.quiet do
- Project.all.reject(&:empty_repo?).each do |project|
- branches = project.repository.branch_names
-
- branches.each do |branch_name|
- break if branches.size < 2
- source_branch = branches.pop
- target_branch = branches.pop
-
- params = {
- source_branch: source_branch,
- target_branch: target_branch,
- title: Faker::Lorem.sentence(6),
- description: Faker::Lorem.sentences(3).join(" "),
- milestone: project.milestones.sample,
- assignee: project.team.users.sample
- }
-
- MergeRequests::CreateService.new(project, project.team.users.sample, params).execute
- print '.'
- end
- end
-
- project = Project.find_with_namespace('gitlab-org/gitlab-test')
-
- 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