ado_post_pr_comment
WHEN: user explicitly asks to post, add, or save a review comment to an ADO Pull Request. [~] PRIORITY TRIGGER: call AFTER ado_analyze_pr_impact when user says 'post the review', 'add comment to PR', 'ajoute le commentaire sur la PR'.
WARNING: ALWAYS ask for explicit user confirmation before calling this tool. Recommended workflow: (1) call ado_analyze_pr_impact, (2) show the result, (3) ask 'Shall I post this review comment to PR #X?', (4) only then call this tool. Requires DEVOPS_ORG_URL + DEVOPS_PAT (Pull Request Threads: Read & Write).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull Request ID (integer), e.g. 42. | |
| project | No | Optional: Azure DevOps project name. Falls back to DEVOPS_PROJECT env var. | |
| filePath | No | Optional: file path for an inline comment. Leave empty for a top-level PR comment. | |
| lineNumber | No | Optional: line number for an inline comment (used with filePath). | |
| commentText | Yes | Markdown text to post. Use the ready-to-post block from `ado_analyze_pr_impact`. | |
| repositoryId | Yes | Git repository name or ID. |