更新保护分支规则
PUT/api/v5/repos/:owner/:repo/branches/:wildcard/setting
Request
Path Parameters
owner stringrequired
仓库所属空间地址(组织或个人的地址path)
repo stringrequired
仓库路径(path)
wildcard stringrequired
保护分支名
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body
pusherstringrequired
可推送代码成员。develop:仓库管理员和开发者;admin:仓库管理员;maintainer:维护者;多个角色使用英文分号相隔。指定用户传入用户名,多个用户使用英文分号隔开。空字符串:不允许任何人推送
mergerstringrequired
可合并 Pull Request成员。develop:仓库管理员和开发者;admin:仓库管理员;maintainer:维护者;多个角色使用英文分号相隔。指定用户传入用户名,多个用户使用英文分号隔开。空字符串:不允许任何人合并
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
Schema
object
{}