Get protected branches
gitlab_get_protected_branchesRetrieve protected branch information for a GitLab project by providing the project ID, including branch names and related protection settings.
Instructions
Get information about protected branches in a project.
Args: **kwargs: Additional parameters for the request (e.g., project_id).
Returns: Response: A wrapper containing the original response and a list of Branch models.
Raises: MissingParameterError: If the project_id 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 |