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

19 lines
486 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
Project.all.each do |project|
2015-10-24 18:46:33 +05:30
10.times do
2014-09-02 18:07:02 +05:30
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,
2017-08-17 22:00:37 +05:30
assignees: [project.team.users.sample]
2014-09-02 18:07:02 +05:30
}
Issues::CreateService.new(project, project.team.users.sample, issue_params).execute
print '.'
end
end
end