GitSettings
删除保护分支规则。Delete branch protection rule.
删除指定的保护分支规则。需要仓库 Master 权限。删除后该规则匹配的分支将不再受到保护。 Delete a branch protection rule. Requires Master permission. Branches matching the rule will no longer be protected after deletion. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-manage:rw
delete/{repo}/-/settings/branch-protections/{id}
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}/-/settings/branch-protections/{id}
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
idstring required
保护分支规则唯一标识符。Branch protection rule unique identifier.
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.