Create pull request
create_pull_requestCreate a pull request in Azure DevOps to merge changes from a source branch into a target branch, with options for title, description, and draft status.
Instructions
Create a new pull request from a source branch into a target branch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repositoryId": "<repositoryId>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>",
"title": "<title>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Azure DevOps project name or id. Defaults to AZDO_PROJECT if set. | |
| repositoryId | Yes | Repository id or name. | |
| sourceBranch | Yes | Source branch name (without refs/heads/). | |
| targetBranch | Yes | Target branch name (without refs/heads/). | |
| title | Yes | Pull request title. | |
| description | No | Pull request description. | |
| isDraft | No | Create as a draft PR. Default: false. |