Welcome to mirror list, hosted at ThFree Co, Russian Federation.

16_protected_branches.rb « development « fixtures « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e859c2c5130a6bd09612e0a317c46510aca3bf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require './spec/support/sidekiq_middleware'

Gitlab::Seeder.quiet do
  admin_user = User.admins.first

  Project.not_mass_generated.each do |project|
    params = {
      name: 'master'
    }

    ProtectedBranches::CreateService.new(project, admin_user, params).execute
    print '.'
  end
end