gitlab-org--gitlab-foss/db/fixtures/development/09_issues.rb
Dmitriy Zaporozhets 2804902cfc
Improve developer seeds
* Improt projects inline so after seeds you have repos
* Fix merge request seeds
* Add comment seeds to both issues and merge requests
* Remove some projects from seeds to increase speed

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-08-11 17:55:31 +03:00

16 lines
456 B
Ruby

Gitlab::Seeder.quiet do
Project.all.each do |project|
(1..10).each do |i|
issue_params = {
title: Faker::Lorem.sentence(6),
description: Faker::Lorem.sentence,
state: ['opened', 'closed'].sample,
milestone: project.milestones.sample,
assignee: project.team.users.sample
}
Issues::CreateService.new(project, project.team.users.sample, issue_params).execute
print '.'
end
end
end