BigW Consortium Gitlab

07_milestones.rb 380 Bytes
Newer Older
1 2
Gitlab::Seeder.quiet do
  Project.all.each do |project|
3
    5.times do |i|
4 5
      milestone_params = {
        title: "v#{i}.0",
Robert Speicher committed
6
        description: FFaker::Lorem.sentence,
7 8
        state: ['opened', 'closed'].sample,
      }
9

10 11
      milestone = Milestones::CreateService.new(
        project, project.team.users.sample, milestone_params).execute
12

13 14 15
      print '.'
    end
  end
16
end