list_branches
Retrieve GitLab repository branches with commit details, default and protected status. Filter by name, paginate results, and identify branch protection at a glance.
Instructions
List repository branches with commit details, default flag, and protected status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page number for pagination (default: 1) | |
| search | No | Search query to filter branch names (e.g. 'feature') | |
| per_page | Yes | Number of branches per page (default: 20, max: 100) | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. |