GitSettings

查询合并请求设置。Get pull request settings.

查询指定仓库的合并请求配置,包括合并方式、是否允许压缩合并、是否要求线性历史等设置。 Get the merge request configuration of the specified repository, including merge methods, squash merge allowed, linear history required, etc. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-manage:r

get/{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.

Response

OK

Changes

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