Issues

设置 Issue 标签。Set issue labels.

替换指定 Issue 上的所有标签为新的标签集合。此操作会先移除该 Issue 上已有的全部标签,再设置传入的新标签列表。如需在保留已有标签的基础上追加,请使用添加标签接口(POST)。 Replace all labels on the specified issue 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-issue:rw

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

Path parameters

repostring required

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

numberinteger required

Issue唯一标识编号。

Request body

labelsstring[]

Issue标签列表,最大限制为10。示例:["标签1","标签2"]

Response

OK

Changes

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