repo_create_pull_request
Creates a pull request in an Azure DevOps repository by specifying source and target branches, title, optional description, reviewers, and draft status.
Instructions
Create a new pull request.
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>",
"sourceRefName": "<sourceRefName>",
"targetRefName": "<targetRefName>",
"title": "<title>"
},
"name": "repo_create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | PR title. | |
| isDraft | No | Create as draft. | |
| reviewers | No | Reviewer IDs. | |
| description | No | PR description. | |
| repositoryId | Yes | The repository ID. | |
| sourceRefName | Yes | Source branch (refs/heads/...). | |
| targetRefName | Yes | Target branch (refs/heads/...). |