repo_get_branch_by_name
Retrieve a specific branch from an Azure DevOps repository by providing the repository ID and branch name. Simplifies branch management using PAT authentication.
Instructions
Get a branch by its name.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branchName | Yes | The name of the branch to retrieve, e.g., 'main' or 'feature-branch'. | |
repositoryId | Yes | The ID of the repository where the branch is located. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"branchName": {
"description": "The name of the branch to retrieve, e.g., 'main' or 'feature-branch'.",
"type": "string"
},
"repositoryId": {
"description": "The ID of the repository where the branch is located.",
"type": "string"
}
},
"required": [
"repositoryId",
"branchName"
],
"type": "object"
}