Get protected branch
get_protected_branchRetrieve details of a specific protected branch to review its push, merge, unprotect, and code-owner approval settings. Query by project ID or path and branch name to verify branch protection policies.
Instructions
Inspect one protected branch and its push, merge, unprotect, and code-owner approval policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |