debian-mirror-gitlab/db/fixtures/development/16_protected_branches.rb
2020-01-01 13:55:28 +05:30

14 lines
290 B
Ruby

require './spec/support/sidekiq_middleware'
Gitlab::Seeder.quiet do
admin_user = User.find(1)
Project.not_mass_generated.each do |project|
params = {
name: 'master'
}
ProtectedBranches::CreateService.new(project, admin_user, params).execute
print '.'
end
end