Git

解锁分支。Unlock branch.

解除指定分支的锁定状态,恢复正常的推送操作。操作成功后返回 204 无内容响应。 Unlock the specified branch and restore normal push operations. Returns 204 No Content on success. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw

delete/{repo}/-/git/branch-locks/{branch}

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

Path parameters

repostring required

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

branchstring required

分支名称. Branch name.

Response

No Content

Changes

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