Extract EE specific files/lines for lib/api/helpers/projects_helpers.rb
We have the following files containing EE specific code. We should move them to ee/
lib/api/helpers/projects_helpers.rb
diff --git a/lib/api/helpers/projects_helpers.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/lib/api/helpers/projects_helpers.rb
index e6a72b949f9..9fdaf6068e3 100644
--- a/lib/api/helpers/projects_helpers.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/lib/api/helpers/projects_helpers.rb
@@ -31,8 +31,17 @@ module API
optional :initialize_with_readme, type: Boolean, desc: "Initialize a project with a README.md"
end
+ params :optional_project_params_ee do
+ optional :repository_storage, type: String, desc: 'Which storage shard the repository is on. Available only to admins'
+ optional :approvals_before_merge, type: Integer, desc: 'How many approvers should approve merge request by default'
+ optional :external_authorization_classification_label, type: String, desc: 'The classification label for the project'
+ optional :mirror, type: Boolean, desc: 'Enables pull mirroring in a project'
+ optional :mirror_trigger_builds, type: Boolean, desc: 'Pull mirroring triggers builds'
+ end
+
params :optional_project_params do
use :optional_project_params_ce
+ use :optional_project_params_ee
end
end
end
Edited by Yorick Peterse