2014-08-11 10:55:31 -04:00
|
|
|
Gitlab::Seeder.quiet do
|
|
|
|
Project.all.each do |project|
|
2015-10-13 10:05:04 -04:00
|
|
|
5.times do |i|
|
2014-08-11 10:55:31 -04:00
|
|
|
milestone_params = {
|
|
|
|
title: "v#{i}.0",
|
2015-05-20 19:22:00 -04:00
|
|
|
description: FFaker::Lorem.sentence,
|
2014-08-11 10:55:31 -04:00
|
|
|
state: ['opened', 'closed'].sample,
|
|
|
|
}
|
2012-10-30 03:22:24 -04:00
|
|
|
|
2014-08-11 10:55:31 -04:00
|
|
|
milestone = Milestones::CreateService.new(
|
|
|
|
project, project.team.users.sample, milestone_params).execute
|
2013-08-26 06:20:45 -04:00
|
|
|
|
2014-08-11 10:55:31 -04:00
|
|
|
print '.'
|
|
|
|
end
|
|
|
|
end
|
2013-08-26 06:20:45 -04:00
|
|
|
end
|