Organizations

查询根组织保护分支规则列表。List group branch protection rules.

查询根组织中配置的所有保护分支规则列表。返回每条规则的匹配模式、合并要求、推送管控等信息。 List all configured branch protection rules under the root organization. Returns the match pattern, merge requirements, push restrictions, etc. for each rule. 访问令牌调用此接口需包含以下权限。Required permissions for access token. group-manage:r

get/{group}/-/git-group-settings/branch-protections

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/{group}/-/git-group-settings/branch-protections
  • Auth: API key in header Authorization

Path parameters

groupstring required

组织名称。仅允许在根组织节点操作。Group name. Only allowed at the root organization node.

Response

OK

Changes

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