GitSettings
更新合并请求设置。Update pull request settings.
更新指定仓库的合并请求配置。支持设置允许的合并方式、是否要求线性历史、是否自动删除源分支等。 Update the merge request configuration of the specified repository. Supports setting allowed merge methods, requiring linear history, auto-deleting source branches, etc. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-manage:rw
put/{repo}/-/settings/pull-request
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/pull-request
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.