debian-mirror-gitlab/db/fixtures/development/07_milestones.rb

19 lines
427 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require './spec/support/sidekiq'
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
}
milestone = Milestones::CreateService.new(
project, project.team.users.sample, milestone_params).execute
print '.'
end
end
end