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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers/groups_helpers.rb')
-rw-r--r--lib/api/helpers/groups_helpers.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/api/helpers/groups_helpers.rb b/lib/api/helpers/groups_helpers.rb
index 74c8b582fde..f7802938d8b 100644
--- a/lib/api/helpers/groups_helpers.rb
+++ b/lib/api/helpers/groups_helpers.rb
@@ -23,6 +23,16 @@ module API
optional :lfs_enabled, type: Boolean, desc: 'Enable/disable LFS for the projects in this group'
optional :request_access_enabled, type: Boolean, desc: 'Allow users to request member access'
optional :default_branch_protection, type: Integer, values: ::Gitlab::Access.protection_values, desc: 'Determine if developers can push to default branch'
+ optional :default_branch_protection_defaults, type: Hash, desc: 'Determine if developers can push to default branch' do
+ optional :allowed_to_push, type: Array, desc: 'An array of access levels allowed to push' do
+ requires :access_level, type: Integer, values: [::Gitlab::Access::DEVELOPER, ::Gitlab::Access::MAINTAINER], desc: 'A valid access level'
+ end
+ optional :allow_force_push, type: Boolean, desc: 'Allow force push for all users with push access.'
+ optional :allowed_to_merge, type: Array, desc: 'An array of access levels allowed to merge' do
+ requires :access_level, type: Integer, values: [::Gitlab::Access::DEVELOPER, ::Gitlab::Access::MAINTAINER], desc: 'A valid access level'
+ end
+ optional :developer_can_initial_push, type: Boolean, desc: 'Allow developers to initial push'
+ end
optional :shared_runners_setting, type: String, values: ::Namespace::SHARED_RUNNERS_SETTINGS, desc: 'Enable/disable shared runners for the group and its subgroups and projects'
end
@@ -44,6 +54,9 @@ module API
params :optional_projects_params_ee do
end
+ params :optional_group_list_params_ee do
+ end
+
params :optional_projects_params do
use :optional_projects_params_ee
end