RepoLabels

更新仓库标签。Update repository label.

更新指定名称的仓库标签信息,包括名称、颜色、描述等字段。支持部分更新,仅传入需要修改的字段即可。 Update label information of the specified name in the repository, including name, color, description, etc. Supports partial updates; only pass the fields that need to be changed. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw

patch/{repo}/-/labels/{name}

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

Path parameters

repostring required

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

namestring required

标签名称。Tag name.

Request body

colorstring

标签颜色。示例值: ff0000,00ff00,0000ff,ffffff。

descriptionstring

标签描述信息。Tag description.

new_namestring

标签名称。Tag name.

Response

OK

Changes

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