list_change_requests
Find and filter change requests by repository, author, reviewer, state, keyword, or creation time, with pagination and sorting.
Instructions
[Code Management] List change requests with multi-condition filtering, pagination and sorting. Supports filtering by repository, author, reviewer, state (opened/merged/closed), search keywords, and creation time range.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organizationId": "<organizationId>"
},
"name": "list_change_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,从1开始。示例:1 | |
| sort | No | 排序方式。asc - 升序;desc - 降序(默认)。示例:'desc' | desc |
| state | No | 合并请求筛选状态。opened - 已开启;merged - 已合并;closed - 已关闭。默认为null,即查询全部状态。示例:'opened' | |
| search | No | 标题关键字搜索,用于在合并请求标题中搜索。示例:'mr title' 或 'bug fix' | |
| orderBy | No | 排序字段。created_at - 按创建时间排序;updated_at - 按更新时间排序(默认)。示例:'updated_at' | updated_at |
| perPage | No | 每页大小,默认20。示例:20 | |
| authorIds | No | 创建者用户ID列表,多个以逗号分隔。示例:'62c795xxxb468af8' 或 '62c795xxxb468af8,62c795xxxb468af9' | |
| projectIds | No | 代码库ID或者路径列表,多个以逗号分隔。示例:'2813489,2813490' 或 '2813489,60de7a6852743a5162b5f957%2FDemoRepo'(注意:斜杠需要URL编码为%2F) | |
| reviewerIds | No | 评审人用户ID列表,多个以逗号分隔。示例:'62c795xxxb468af8' 或 '62c795xxxb468af8,62c795xxxb468af9' | |
| createdAfter | No | 截止创建时间,时间格式为ISO 8601。查询创建时间不晚于此时间的合并请求。示例:'2024-04-05T15:30:45Z' | |
| createdBefore | No | 起始创建时间,时间格式为ISO 8601。查询创建时间不早于此时间的合并请求。示例:'2024-04-05T15:30:45Z' | |
| organizationId | Yes | 组织ID |