Get protected branch
gitlab_get_protected_branchRetrieve details for a specific protected branch in a GitLab project to inspect access, merge, and push permissions.
Instructions
Get information about a specific protected branch in a project.
Args: **kwargs: Additional parameters for the request (e.g., project_id, branch).
Returns: Response: A wrapper containing the original response and a Branch model.
Raises: MissingParameterError: If the project_id or branch is missing. ParameterError: If invalid parameters are provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| page | No | ||
| branch | No | ||
| per_page | No | ||
| max_pages | No | ||
| project_id | Yes | ||
| api_parameters | No |