查询合并请求列表。List pull requests.
分页查询指定仓库中的合并请求列表。支持按状态、作者、评审人、处理人、标签、目标分支等条件筛选,并可指定排序方式。 Paginate merge requests of the specified repository. Supports filtering by status, author, reviewer, assignee, label, target branch, etc., and allows specifying sort order. 多值过滤参数(评审人、处理人、标签)支持"包含任一"和"包含全部"两种操作模式。 Multi-value filter parameters (reviewer, assignee, label) support two operation modes: "contains any" and "contains all". 排序参数 -updated_at 在内部会映射为 -last_acted_at(最后活跃时间)进行排序。 Note: The sort parameter -updated_at is internally mapped to -last_acted_at (last active time) for sorting. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-pr:r
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/pulls
- Auth: API key in header Authorization
Path parameters
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
Query parameters
分页页码。Page number.
分页页大小。Page size.
合并请求状态过滤。可选值:open,closed,all
作者名称过滤。示例值:张三,李四. Author name filter. Example: Zhang San,Li Si
评审人名称过滤,-表示无评审人。示例值:张三,李四,-. Reviewer name filter, - means no reviewer. Example: Zhang San,Li Si,-
评审者操作符。示例值:contains_any,contains_all
处理人名称过滤,-表示无处理人。示例值:张三,李四,-. Assignee name filter, - means no assignee. Example: Zhang San,Li Si,-
处理人操作符。示例值:contains_any,contains_all
标签过滤。示例值:git,bug,feature
标签操作符。示例值:contains_any,contains_all
目标分支引用。示例值:master
合并请求更新时间范围开始。示例:2022-01-31. PR update time range start. Example: 2022-01-31
合并请求更新时间范围结束。示例:2022-02-16. PR update time range end. Example: 2022-02-16
合并请求排序字段,-前缀表示倒序。可选值:created_at,-created_at,-updated_at
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.