create_pull_request_comment
Add comments to pull requests, including file-specific or line-specific feedback, and manage thread statuses for effective collaboration in Azure DevOps.
Instructions
Add a comment to a pull request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Comment content | |
filePath | No | File path for file-specific comments (optional) | |
lineNumber | No | Line number for line-specific comments (optional) | |
pullRequestId | Yes | ID of the pull request | |
status | No | Thread status (optional) | |
threadId | No | Thread ID for replies (optional) |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Comment content",
"type": "string"
},
"filePath": {
"description": "File path for file-specific comments (optional)",
"type": "string"
},
"lineNumber": {
"description": "Line number for line-specific comments (optional)",
"type": "number"
},
"pullRequestId": {
"description": "ID of the pull request",
"type": "number"
},
"status": {
"description": "Thread status (optional)",
"enum": [
"active",
"fixed",
"pending",
"wontfix",
"closed"
],
"type": "string"
},
"threadId": {
"description": "Thread ID for replies (optional)",
"type": "number"
}
},
"required": [
"pullRequestId",
"content"
],
"type": "object"
}