Function repos_slash_get_access_restrictions

Source
pub async fn repos_slash_get_access_restrictions(
    configuration: &Configuration,
    owner: &str,
    repo: &str,
    branch: &str,
) -> Result<BranchRestrictionPolicy, Error<ReposSlashGetAccessRestrictionsError>>
Expand description

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub’s products in the GitHub Help documentation. Lists who has access to this protected branch. Note: Users, apps, and teams restrictions are only available for organization-owned repositories.