Create Pull Request Comment
az_pr_commentPost a comment on an Azure DevOps pull request. Create a new thread, optionally anchored to a file line, or reply to an existing thread by specifying its ID.
Instructions
在 PR 上留言。未指定 threadId 時建立新的討論串(可用 filePath/line 錨定到檔案行);指定 threadId 時回覆該討論串(此時忽略 filePath/line/status)。預設 organization/project/repository 同 az_pr_show。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | 錨定的行號(需搭配 filePath) | |
| status | No | 新討論串的初始狀態,預設 active | |
| content | Yes | 留言內容(不可為空) | |
| project | No | 覆寫預設 project(預設 MS) | |
| filePath | No | 新討論串錨定的檔案路徑(自動補開頭的 /) | |
| prNumber | Yes | PR 編號 | |
| threadId | No | 回覆既有討論串的 thread ID | |
| repository | No | 覆寫預設 repository(預設 MS-Web) |