summaryrefslogtreecommitdiff
path: root/db/fixtures/development/09_issues.rb
blob: c636e96381ca4f58d24b4c806e98a1117c8263a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Gitlab::Seeder.quiet do
  Project.all.each do |project|
    (1..10).each  do |i|
      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