RepoLabels

创建仓库标签。Create repository label.

在指定仓库中创建一个新的标签。需要通过请求体指定标签名称、颜色等信息。创建成功后返回标签详情。 Create a new label in the specified repository. Specify label name, color, etc. in the request body. Returns label details on success. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw

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

Path parameters

repostring required

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

Request body

colorstring

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

descriptionstring

标签描述信息。Tag description.

namestring

标签名称。Tag name.

Response

Created

Changes

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