BigW Consortium Gitlab

09_issues.rb 483 Bytes
Newer Older
1 2
require './spec/support/sidekiq'

3
Gitlab::Seeder.quiet do
4
  Project.all.each do |project|
5
    10.times do
6
      issue_params = {
Robert Speicher committed
7 8
        title: FFaker::Lorem.sentence(6),
        description: FFaker::Lorem.sentence,
9 10
        state: ['opened', 'closed'].sample,
        milestone: project.milestones.sample,
11 12
        assignee: project.team.users.sample
      }
13

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