debian-mirror-gitlab/db/fixtures/development/16_protected_branches.rb

15 lines
295 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
require './spec/support/sidekiq_middleware'
2017-08-17 22:00:37 +05:30
2016-09-13 17:45:13 +05:30
Gitlab::Seeder.quiet do
2020-10-24 23:57:45 +05:30
admin_user = User.admins.first
2016-09-13 17:45:13 +05:30
2019-12-26 22:10:19 +05:30
Project.not_mass_generated.each do |project|
2016-09-13 17:45:13 +05:30
params = {
name: 'master'
}
ProtectedBranches::CreateService.new(project, admin_user, params).execute
print '.'
end
end