Pulls

设置合并请求标签。Set pull request labels.

替换指定合并请求上的所有标签为新的标签集合。此操作会先移除已有的全部标签,再设置传入的新标签列表。如需在保留已有标签的基础上追加,请使用添加标签接口(POST)。 Replace all labels on the specified pull request with a new set. This operation first removes all existing labels, then applies the new label list. To append labels while preserving existing ones, use the add labels endpoint (POST). 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-pr:rw

put/{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.

numberstring required

Pull唯一标识编号。

Request body

labelsstring[]

合并请求的标签列表。Merge request tag list.

Response

OK

Changes

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