repo_create_pull_request_thread
Add a comment thread to a specific pull request in Azure DevOps, enabling detailed discussions on files or code sections using repository ID, pull request ID, and content.
Instructions
Creates a new comment thread on a pull request.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | The content of the comment to be added. | |
filePath | No | The path of the file where the comment thread will be created. (optional) | |
project | No | Project ID or project name (optional) | |
pullRequestId | Yes | The ID of the pull request where the comment thread exists. | |
repositoryId | Yes | The ID of the repository where the pull request is located. | |
rightFileEndLine | No | Position of last character of the thread's span in right file. The line number of a thread's position. Starts at 1. Must only be set if rightFileStartLine is also specified. (optional) | |
rightFileEndOffset | No | Position of last character of the thread's span in right file. The character offset of a thread's position inside of a line. Must only be set if rightFileEndLine is also specified. (optional) | |
rightFileStartLine | No | Position of first character of the thread's span in right file. The line number of a thread's position. Starts at 1. (optional) | |
rightFileStartOffset | No | Position of first character of the thread's span in right file. The line number of a thread's position. The character offset of a thread's position inside of a line. Starts at 1. Must only be set if rightFileStartLine is also specified. (optional) | |
status | No | The status of the comment thread. Defaults to 'Active'. | Active |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"content": {
"description": "The content of the comment to be added.",
"type": "string"
},
"filePath": {
"description": "The path of the file where the comment thread will be created. (optional)",
"type": "string"
},
"project": {
"description": "Project ID or project name (optional)",
"type": "string"
},
"pullRequestId": {
"description": "The ID of the pull request where the comment thread exists.",
"type": "number"
},
"repositoryId": {
"description": "The ID of the repository where the pull request is located.",
"type": "string"
},
"rightFileEndLine": {
"description": "Position of last character of the thread's span in right file. The line number of a thread's position. Starts at 1. Must only be set if rightFileStartLine is also specified. (optional)",
"type": "number"
},
"rightFileEndOffset": {
"description": "Position of last character of the thread's span in right file. The character offset of a thread's position inside of a line. Must only be set if rightFileEndLine is also specified. (optional)",
"type": "number"
},
"rightFileStartLine": {
"description": "Position of first character of the thread's span in right file. The line number of a thread's position. Starts at 1. (optional)",
"type": "number"
},
"rightFileStartOffset": {
"description": "Position of first character of the thread's span in right file. The line number of a thread's position. The character offset of a thread's position inside of a line. Starts at 1. Must only be set if rightFileStartLine is also specified. (optional)",
"type": "number"
},
"status": {
"default": "Active",
"description": "The status of the comment thread. Defaults to 'Active'.",
"enum": [
"Unknown",
"Active",
"Fixed",
"WontFix",
"Closed",
"ByDesign",
"Pending"
],
"type": "string"
}
},
"required": [
"repositoryId",
"pullRequestId",
"content"
],
"type": "object"
}