Issues

查询仓库 Issue 列表。List repository issues.

分页查询指定仓库中的 Issue 列表。支持按状态、关键词、优先级、标签、创建者、处理人等条件进行筛选,并可指定排序方式。关键词搜索支持在标题和内容中模糊匹配。标签过滤支持"包含任一"和"包含全部"两种操作模式。 Paginate the issue list of the specified repository. Supports filtering by state, keyword, priority, labels, author, assignees, and specifying sort order. Keyword search supports fuzzy matching in title and content. Label filtering supports "contains any" and "contains all" modes. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-issue:r

get/{repo}/-/issues

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}/-/issues
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

Query parameters

pageinteger

分页页码,输入值小于1,则调整为1。Page number. Values less than 1 are adjusted to 1.

page_sizeinteger

分页大小,<0为10,>100为100. Page size, clamped to 10 if <0 or 100 if >100.

statestring

Issue状态过滤。可选值:open、closed

keywordstring

Issue搜索关键词,支持在标题和内容中模糊搜索。

prioritystring

Issue优先级过滤。示例:-2P,-1P,P0,P1,P2,P3

labelsstring

Issue标签过滤。示例:git,bug,feature

labels_operatorstring

标签过滤操作符。可选值:contains_any,contains_all

authorsstring

Issue创建者过滤,多个作者用英文逗号分隔。示例:张三,李四

assigneesstring

Issue处理人过滤,多个处理人用英文逗号分隔,-表示未分配处理人。示例:张三,李四,-

updated_time_beginstring

Issue更新时间范围开始。示例:2022-01-31

updated_time_endstring

Issue更新时间范围结束。示例:2022-02-16

close_time_beginstring

Issue关闭时间范围开始。示例:2022-01-31

close_time_endstring

Issue关闭时间范围结束。示例:2022-02-16

order_bystring

Issue排序字段,-前缀表示倒序。可选值:created_at,-created_at,-updated_at,-last_acted_at

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.