debian-mirror-gitlab/db/fixtures/development/09_issues.rb

17 lines
458 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
Gitlab::Seeder.quiet do
Project.all.each do |project|
(1..10).each do |i|
issue_params = {
2015-09-11 14:41:01 +05:30
title: FFaker::Lorem.sentence(6),
description: FFaker::Lorem.sentence,
2014-09-02 18:07:02 +05:30
state: ['opened', 'closed'].sample,
milestone: project.milestones.sample,
assignee: project.team.users.sample
}
Issues::CreateService.new(project, project.team.users.sample, issue_params).execute
print '.'
end
end
end