Organizations

获取根组织保护分支规则。Get group branch protection rule.

根据规则 ID 获取根组织保护分支规则的详细配置,包括匹配模式、合并要求、推送管控等。 Get detailed configuration of a specific branch protection rule under the root organization by rule ID. 访问令牌调用此接口需包含以下权限。Required permissions for access token. group-manage:r

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

Path parameters

groupstring required

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

idstring required

保护分支规则唯一标识符。Branch protection rule unique identifier.

Response

OK

Changes

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