Pulls

查询合并请求标签。List pull request labels.

分页查询指定合并请求上关联的所有标签列表。返回每个标签的名称、颜色、描述等信息。 Paginate all labels associated with the specified merge request. Returns the name, color, and description of each label. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-pr:r

get/{repo}/-/pulls/{number}/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}/-/pulls/{number}/labels
  • Auth: API key in header Authorization

Path parameters

repostring required

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

numberinteger required

Pull唯一标识编号。

Query parameters

pageinteger

分页页码。Page number.

page_sizeinteger

分页页大小。Page size.

Response

OK

Changes

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