diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-30 18:56:55 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-30 19:00:29 +0100 |
commit | f51e3294cb780d18382d9e6b062234311d93cf73 (patch) | |
tree | f53045c007f8ab739ed5f2c1b376f578df4fe124 | |
parent | 467b44cbbfd70c627dca0a8f57966bc5ba0999c3 (diff) | |
download | gitlab-ce-add-missing-param-in-projects-api.tar.gz |
Add missing `repository_storage` optional param in the Project APIadd-missing-param-in-projects-api
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | doc/api/projects.md | 2 | ||||
-rw-r--r-- | lib/api/projects.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 132be644b59..c0b3e93f1f1 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -604,6 +604,7 @@ Parameters: | `visibility_level` | integer | no | See [project visibility level](#project-visibility-level) | | `import_url` | string | no | URL to import repository from | | `public_builds` | boolean | no | If `true`, builds can be viewed by non-project-members | +| `repository_storage` | string | no | Which storage shard the repository is on. Available only to admins | | `only_allow_merge_if_build_succeeds` | boolean | no | Set whether merge requests can only be merged with successful builds | | `only_allow_merge_if_all_discussions_are_resolved` | boolean | no | Set whether merge requests can only be merged when all the discussions are resolved | | `lfs_enabled` | boolean | no | Enable LFS | @@ -639,6 +640,7 @@ Parameters: | `visibility_level` | integer | no | See [project visibility level](#project-visibility-level) | | `import_url` | string | no | URL to import repository from | | `public_builds` | boolean | no | If `true`, builds can be viewed by non-project-members | +| `repository_storage` | string | no | Which storage shard the repository is on. Available only to admins | | `only_allow_merge_if_build_succeeds` | boolean | no | Set whether merge requests can only be merged with successful builds | | `only_allow_merge_if_all_discussions_are_resolved` | boolean | no | Set whether merge requests can only be merged when all the discussions are resolved | | `lfs_enabled` | boolean | no | Enable LFS | diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 8975b1a751c..a8fd36a9e42 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -22,6 +22,7 @@ module API Gitlab::VisibilityLevel::INTERNAL, Gitlab::VisibilityLevel::PUBLIC ], desc: 'Create a public project. The same as visibility_level = 20.' optional :public_builds, type: Boolean, desc: 'Perform public builds' + optional :repository_storage, type: String, desc: 'Which storage shard the repository is on. Available only to admins' optional :request_access_enabled, type: Boolean, desc: 'Allow users to request member access' optional :only_allow_merge_if_build_succeeds, type: Boolean, desc: 'Only allow to merge if builds succeed' optional :only_allow_merge_if_all_discussions_are_resolved, type: Boolean, desc: 'Only allow to merge if all discussions are resolved' |