gitlab-org--gitlab-foss/db/fixtures/development/09_issues.rb

17 lines
449 B
Ruby
Raw Normal View History

2012-11-13 15:11:56 -05:00
Gitlab::Seeder.quiet do
Project.all.each do |project|
2015-10-13 10:05:04 -04:00
10.times do
issue_params = {
title: FFaker::Lorem.sentence(6),
description: FFaker::Lorem.sentence,
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
2012-10-30 04:03:21 -04:00
end