gitlab_list_branches
Retrieve and list all branches in a GitLab repository with detailed commit information. Use to monitor feature branches, identify defaults, or filter results for specific branch types.
Instructions
List repository branches Returns: All branches with latest commit info Use when: Checking branches, finding feature branches Optional: Search filter
Example response: [{ "name": "main", "protected": true, "merged": false, "can_push": true, "default": true, "commit": { "id": "abc123...", "short_id": "abc123", "title": "Latest commit" } }]
Related tools:
gitlab_create_branch: Create new branch
gitlab_delete_branch: Remove branch
gitlab_compare_refs: Compare branches
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | No | Project ID or path (optional - auto-detects from git) |