mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
25 lines
585 B
Ruby
25 lines
585 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Helpers
|
|
module RemoteMirrorsHelpers
|
|
extend ActiveSupport::Concern
|
|
extend Grape::API::Helpers
|
|
|
|
params :mirror_branches_setting_ce do
|
|
optional :only_protected_branches, type: Boolean, desc: 'Determines if only protected branches are mirrored'
|
|
end
|
|
|
|
params :mirror_branches_setting_ee do
|
|
end
|
|
|
|
params :mirror_branches_setting do
|
|
use :mirror_branches_setting_ce
|
|
use :mirror_branches_setting_ee
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
API::Helpers::RemoteMirrorsHelpers.prepend_mod
|