repo_create_pull_request
Create a pull request in Azure DevOps by specifying source and target branches, title, and optional details. Connects via PAT authentication to streamline repository collaboration.
Instructions
Create a new pull request.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | The description of the pull request. Optional. | |
forkSourceRepositoryId | No | The ID of the fork repository that the pull request originates from. Optional, used when creating a pull request from a fork. | |
isDraft | No | Indicates whether the pull request is a draft. Defaults to false. | |
repositoryId | Yes | The ID of the repository where the pull request will be created. | |
sourceRefName | Yes | The source branch name for the pull request, e.g., 'refs/heads/feature-branch'. | |
targetRefName | Yes | The target branch name for the pull request, e.g., 'refs/heads/main'. | |
title | Yes | The title of the pull request. | |
workItems | No | Work item IDs to associate with the pull request, space-separated. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"description": {
"description": "The description of the pull request. Optional.",
"type": "string"
},
"forkSourceRepositoryId": {
"description": "The ID of the fork repository that the pull request originates from. Optional, used when creating a pull request from a fork.",
"type": "string"
},
"isDraft": {
"default": false,
"description": "Indicates whether the pull request is a draft. Defaults to false.",
"type": "boolean"
},
"repositoryId": {
"description": "The ID of the repository where the pull request will be created.",
"type": "string"
},
"sourceRefName": {
"description": "The source branch name for the pull request, e.g., 'refs/heads/feature-branch'.",
"type": "string"
},
"targetRefName": {
"description": "The target branch name for the pull request, e.g., 'refs/heads/main'.",
"type": "string"
},
"title": {
"description": "The title of the pull request.",
"type": "string"
},
"workItems": {
"description": "Work item IDs to associate with the pull request, space-separated.",
"type": "string"
}
},
"required": [
"repositoryId",
"sourceRefName",
"targetRefName",
"title"
],
"type": "object"
}