Pulls
添加合并请求标签。Add pull request labels.
为指定合并请求添加一个或多个标签。已存在于该合并请求上的标签不会重复添加。标签必须是仓库中已定义的标签。添加成功后返回该合并请求当前的完整标签列表。 Add one or more labels to the specified merge request. Labels that already exist on the merge request will not be duplicated. Labels must be predefined in the repository. Returns the current full label list of the merge request on success. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-pr:rw
post/{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
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.