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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-01 21:10:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-01 21:10:04 +0300
commitc3afdb42ddc7f24d51032ed0daef071a2dafdc93 (patch)
tree4bf3f4fed99d260370921dd2c222840012be14a3 /doc/api/protected_branches.md
parent41aebff8ec728c167298aa44e037d8e324e00e8d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/protected_branches.md')
-rw-r--r--doc/api/protected_branches.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/api/protected_branches.md b/doc/api/protected_branches.md
index 044e6bf5394..8da6602c793 100644
--- a/doc/api/protected_branches.md
+++ b/doc/api/protected_branches.md
@@ -22,7 +22,7 @@ The access levels are defined in the `ProtectedRefAccess.allowed_access_levels`
## List protected branches
-Gets a list of protected branches from a project.
+Gets a list of protected branches from a project as they are defined [in the UI](../user/project/protected_branches.md#configure-a-protected-branch). If a wildcard is set, it is returned instead of the exact name of the branches that match that wildcard.
```plaintext
GET /projects/:id/protected_branches
@@ -59,6 +59,24 @@ Example response:
"allow_force_push":false,
"code_owner_approval_required": false
},
+ {
+ "id": 1,
+ "name": "release/*",
+ "push_access_levels": [
+ {
+ "access_level": 40,
+ "access_level_description": "Maintainers"
+ }
+ ],
+ "merge_access_levels": [
+ {
+ "access_level": 40,
+ "access_level_description": "Maintainers"
+ }
+ ],
+ "allow_force_push":false,
+ "code_owner_approval_required": false
+ },
...
]
```