RepoLabels

查询仓库标签列表。List repository labels.

分页查询指定仓库中定义的所有标签。通过关键词模糊搜索标签名称,返回每个标签的名称、颜色、描述等信息。 Paginate all labels defined in the specified repository. Supports fuzzy search by keyword. Returns the name, color, and description of each label. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:r

get/{repo}/-/labels

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

Path parameters

repostring required

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

Query parameters

pageinteger

分页页码。Page number.

page_sizeinteger

分页页大小。Page size.

keywordstring

标签搜索关键词,支持模糊匹配。Label search keyword, supports fuzzy matching.

Response

OK

Changes

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