BigW Consortium Gitlab

07_milestones.rb 378 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
        state: [:active, :closed].sample,
8
      }
9

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

13 14 15
      print '.'
    end
  end
16
end