diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-20 12:11:29 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-20 12:11:29 +0000 |
commit | 7b384a1f3d2608898318e67d11eea2914889ae81 (patch) | |
tree | af33e77d13b18a96156c69616cb09a3a4f7697c6 /doc/api/protected_branches.md | |
parent | d46287cc16ba244720c6d5c00491944336972988 (diff) | |
download | gitlab-ce-7b384a1f3d2608898318e67d11eea2914889ae81.tar.gz |
Add latest changes from gitlab-org/gitlab@12-3-stable
Diffstat (limited to 'doc/api/protected_branches.md')
-rw-r--r-- | doc/api/protected_branches.md | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/doc/api/protected_branches.md b/doc/api/protected_branches.md index debf1b264f9..a14c9046ca7 100644 --- a/doc/api/protected_branches.md +++ b/doc/api/protected_branches.md @@ -46,8 +46,7 @@ Example response: "access_level": 40, "access_level_description": "Maintainers" } - ], - "code_owner_approval_required": "false" + ] }, ... ] @@ -77,8 +76,7 @@ Example response: "group_id": 1234, "access_level_description": "Example Merge Group" } - ], - "code_owner_approval_required": "false" + ] }, ... ] @@ -117,8 +115,7 @@ Example response: "access_level": 40, "access_level_description": "Maintainers" } - ], - "code_owner_approval_required": "false" + ] } ``` @@ -145,8 +142,7 @@ Example response: "group_id": 1234, "access_level_description": "Example Merge Group" } - ], - "code_owner_approval_required": "false" + ] } ``` @@ -165,15 +161,14 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" 'https://gitla | Attribute | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | -| `name` | string | yes | The name of the branch or wildcard | -| `push_access_level` | string | no | Access levels allowed to push (defaults: `40`, maintainer access level) | -| `merge_access_level` | string | no | Access levels allowed to merge (defaults: `40`, maintainer access level) | -| `unprotect_access_level` | string | no | Access levels allowed to unprotect (defaults: `40`, maintainer access level) | -| `allowed_to_push` | array | no | **(STARTER)** Array of access levels allowed to push, with each described by a hash | -| `allowed_to_merge` | array | no | **(STARTER)** Array of access levels allowed to merge, with each described by a hash | -| `allowed_to_unprotect` | array | no | **(STARTER)** Array of access levels allowed to unprotect, with each described by a hash | -| `code_owner_approval_required` | boolean | no | **(PREMIUM)** Prevent pushes to this branch if it matches an item in the [`CODEOWNERS` file](../user/project/code_owners.md). (defaults: false) | +| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | +| `name` | string | yes | The name of the branch or wildcard | +| `push_access_level` | string | no | Access levels allowed to push (defaults: `40`, maintainer access level) | +| `merge_access_level` | string | no | Access levels allowed to merge (defaults: `40`, maintainer access level) | +| `unprotect_access_level` | string | no | Access levels allowed to unprotect (defaults: `40`, maintainer access level) | +| `allowed_to_push` | array | no | **(STARTER)** Array of access levels allowed to push, with each described by a hash | +| `allowed_to_merge` | array | no | **(STARTER)** Array of access levels allowed to merge, with each described by a hash | +| `allowed_to_unprotect` | array | no | **(STARTER)**Array of access levels allowed to unprotect, with each described by a hash | Example response: @@ -197,8 +192,7 @@ Example response: "access_level": 40, "access_level_description": "Maintainers" } - ], - "code_owner_approval_required": "false" + ] } ``` @@ -233,8 +227,7 @@ Example response: "group_id": null, "access_level_description": "Maintainers" } - ], - "code_owner_approval_required": "false" + ] } ``` @@ -275,8 +268,7 @@ Example response: "group_id": null, "access_level_description": "Maintainers" } - ], - "code_owner_approval_required": "false" + ] } ``` |