Commit 08134364 authored by Albin Vass's avatar Albin Vass Committed by Amy Qualls

Mention protected branch patterns

parent f744d230
...@@ -22,7 +22,7 @@ The access levels are defined in the `ProtectedRefAccess.allowed_access_levels` ...@@ -22,7 +22,7 @@ The access levels are defined in the `ProtectedRefAccess.allowed_access_levels`
## List protected branches ## 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 ```plaintext
GET /projects/:id/protected_branches GET /projects/:id/protected_branches
...@@ -59,6 +59,24 @@ Example response: ...@@ -59,6 +59,24 @@ Example response:
"allow_force_push":false, "allow_force_push":false,
"code_owner_approval_required": 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
},
... ...
] ]
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment