2020-01-01 13:55:28 +05:30
|
|
|
require './spec/support/sidekiq_middleware'
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
Gitlab::Seeder.quiet do
|
2019-12-26 22:10:19 +05:30
|
|
|
Project.not_mass_generated.each do |project|
|
2015-10-24 18:46:33 +05:30
|
|
|
5.times do |i|
|
2014-09-02 18:07:02 +05:30
|
|
|
milestone_params = {
|
|
|
|
title: "v#{i}.0",
|
2015-09-11 14:41:01 +05:30
|
|
|
description: FFaker::Lorem.sentence,
|
2016-06-02 11:05:42 +05:30
|
|
|
state: [:active, :closed].sample,
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
Milestones::CreateService.new(project, project.team.users.sample, milestone_params).execute
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
print '.'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|