Git
删除分支。Delete branch.
删除指定名称的分支。受保护分支禁止删除。删除后该分支上未合并的提交可能无法通过分支名称访问。 Delete the branch with the specified name. Protected branches cannot be deleted. Unmerged commits on the branch may become inaccessible after deletion. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw
delete/{repo}/-/git/branches/{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/branches/{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
OK
Changes
No recorded changes to this operation across all 1 revision of this API.