Issues

添加 Issue 标签。Add issue labels.

为指定 Issue 添加一个或多个标签。已存在于该 Issue 上的标签不会重复添加。添加成功后返回该 Issue 当前的完整标签列表。标签必须是仓库中已定义的标签。 Add one or more labels to the specified issue. Labels already present will not be duplicated. Returns the full label list of the issue on success. Labels must already be defined in the repository. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-issue:rw

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