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 'doc/api/protected_branches.md')
-rw-r--r--doc/api/protected_branches.md38
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"
+ ]
}
```