repos_slash_get_custom_deployment_protection_rule

Function repos_slash_get_custom_deployment_protection_rule 

Source
pub async fn repos_slash_get_custom_deployment_protection_rule(
    configuration: &Configuration,
    owner: &str,
    repo: &str,
    environment_name: &str,
    protection_rule_id: i32,
) -> Result<DeploymentProtectionRule, Error<ReposSlashGetCustomDeploymentProtectionRuleError>>
Expand description

Gets an enabled custom deployment protection rule 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 GET /apps/{app_slug}. OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.