BigW Consortium Gitlab

09_issues.rb 458 Bytes
Newer Older
1
Gitlab::Seeder.quiet do
2 3 4
  Project.all.each do |project|
    (1..10).each  do |i|
      issue_params = {
Robert Speicher committed
5 6
        title: FFaker::Lorem.sentence(6),
        description: FFaker::Lorem.sentence,
7 8
        state: ['opened', 'closed'].sample,
        milestone: project.milestones.sample,
9 10
        assignee: project.team.users.sample
      }
11

12 13 14
      Issues::CreateService.new(project, project.team.users.sample, issue_params).execute
      print '.'
    end
15
  end
randx committed
16
end