get_branch
Fetch a GitLab branch's details, commit SHA, and protection rules using its project ID and branch name for repository inspection.
Instructions
Get specific branch details, commit SHA, and protection rules
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name (e.g. 'main' or 'feature/user-auth') | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. |