repos_slash_get_all_deployment_protection_rules

Function repos_slash_get_all_deployment_protection_rules 

Source
pub async fn repos_slash_get_all_deployment_protection_rules(
    configuration: &Configuration,
    environment_name: &str,
    repo: &str,
    owner: &str,
) -> Result<ReposGetAllDeploymentProtectionRules200Response, Error<ReposSlashGetAllDeploymentProtectionRulesError>>
Expand description

Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "Using environments for deployment." For more information about the app that is providing this custom deployment rule, see the documentation for the GET /apps/{app_slug} endpoint. OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.