repo_update_pull_request
Update a pull request in Azure DevOps by specifying its ID and modifying fields such as title, description, target branch, or status using Personal Access Token authentication.
Instructions
Update a Pull Request by ID with specified fields.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | The new description for the pull request. | |
isDraft | No | Whether the pull request should be a draft. | |
pullRequestId | Yes | The ID of the pull request to update. | |
repositoryId | Yes | The ID of the repository where the pull request exists. | |
status | No | The new status of the pull request. Can be 'Active' or 'Abandoned'. | |
targetRefName | No | The new target branch name (e.g., 'refs/heads/main'). | |
title | No | The new title for the pull request. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"description": {
"description": "The new description for the pull request.",
"type": "string"
},
"isDraft": {
"description": "Whether the pull request should be a draft.",
"type": "boolean"
},
"pullRequestId": {
"description": "The ID of the pull request to update.",
"type": "number"
},
"repositoryId": {
"description": "The ID of the repository where the pull request exists.",
"type": "string"
},
"status": {
"description": "The new status of the pull request. Can be 'Active' or 'Abandoned'.",
"enum": [
"Active",
"Abandoned"
],
"type": "string"
},
"targetRefName": {
"description": "The new target branch name (e.g., 'refs/heads/main').",
"type": "string"
},
"title": {
"description": "The new title for the pull request.",
"type": "string"
}
},
"required": [
"repositoryId",
"pullRequestId"
],
"type": "object"
}