v2
Swagger 2.02026-08-01331211921.0 KBGet a branch restriction rule
Returns a specific branch restriction rule.
Response
The branch restriction rule
The branch restriction status' id.
The type of restriction that is being applied.
Indicates how the restriction is matched against a branch. The default is glob.
Apply the restriction to branches of this type. Active when branch_match_kind is branching_model. The branch type will be calculated using the branching model configured for the repository.
Apply the restriction to branches that match this pattern. Active when branch_match_kind is glob. Will be empty when branch_match_kind is branching_model.
Value with kind-specific semantics:
-
require_approvals_to_merge uses it to require a minimum number of approvals on a PR.
-
require_default_reviewer_approvals_to_merge uses it to require a minimum number of approvals from default reviewers on a PR.
-
require_passing_builds_to_merge uses it to require a minimum number of passing builds.
-
require_commits_behind uses it to require the current branch is up to a maximum number of commits behind it destination.