list_change_request_comments
Retrieve comments on a change request. Filter by type, state, resolved status, or file path to review specific discussions.
Instructions
[Code Management] List comments on a change request. Supports filtering by comment type (GLOBAL_COMMENT or INLINE_COMMENT), state (OPENED or DRAFT), resolved status, and file path (for inline comments).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | 评论状态。OPENED - 已发布的评论;DRAFT - 草稿评论 | OPENED |
| localId | Yes | 合并请求局部ID,表示代码库中第几个合并请求。示例:'1' 或 '42' | |
| filePath | No | 文件路径过滤,仅用于行内评论。可以过滤特定文件的评论。示例:'/src/main/java/com/example/MyClass.java' 或 'src/utils/helper.ts' | |
| resolved | No | 是否已解决。true - 只查询已解决的评论;false - 只查询未解决的评论(默认值) | |
| commentType | No | 评论类型。GLOBAL_COMMENT - 全局评论;INLINE_COMMENT - 行内评论 | GLOBAL_COMMENT |
| repositoryId | Yes | 代码库ID或全路径(斜杠须编码为%2F),如 2835387 或 myorg%2FmyRepo | |
| organizationId | Yes | 组织ID | |
| patchSetBizIds | No | 关联版本ID列表,每个评论都关联一个版本,表示该评论是在哪个版本上发布的。对于全局评论,关联的是最新合并源版本。示例:['bf117304dfe44d5d9b1132f348edf92e', '537367017a9841738ac4269fbf6aacbe'] |