pub async fn repos_slash_get_branch_rules(
configuration: &Configuration,
owner: &str,
repo: &str,
branch: &str,
per_page: Option<i32>,
page: Option<i32>,
) -> Result<Vec<RepositoryRuleDetailed>, Error<ReposSlashGetBranchRulesError>>
Expand description
Returns all active rules that apply to the specified branch. The branch does not need to exist; rules that would apply to a branch with that name will be returned. All active rules that apply will be returned, regardless of the level at which they are configured (e.g. repository or organization). Rules in rulesets with "evaluate" or "disabled" enforcement statuses are not returned.