debian-mirror-gitlab/db/fixtures/development/09_issues.rb
2015-10-24 18:46:33 +05:30

16 lines
449 B
Ruby

Gitlab::Seeder.quiet do
Project.all.each do |project|
10.times do
issue_params = {
title: FFaker::Lorem.sentence(6),
description: FFaker::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