add_pull_request_comment
Add comments to Azure DevOps pull requests to review code, discuss changes, or provide feedback. Supports markdown, replies, and file/line-specific threads.
Instructions
Add a comment to a pull request (repositoryId optional; derived from pullRequestId when omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | The status to set for a new thread | |
| content | Yes | The content of the comment in markdown | |
| filePath | No | The path of the file to comment on (for new thread on file) | |
| threadId | No | The ID of the thread to add the comment to | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| lineNumber | No | The line number to comment on (for new thread on file) | |
| repositoryId | No | The ID or name of the repository (optional; derived from pullRequestId when omitted) | |
| pullRequestId | Yes | The ID of the pull request | |
| organizationId | No | The ID or name of the organization (Default: mycompany) | |
| parentCommentId | No | ID of the parent comment when replying to an existing comment |