repos_slash_create_deployment_protection_rule

Function repos_slash_create_deployment_protection_rule 

Source
pub async fn repos_slash_create_deployment_protection_rule(
    configuration: &Configuration,
    environment_name: &str,
    repo: &str,
    owner: &str,
    repos_create_deployment_protection_rule_request: ReposCreateDeploymentProtectionRuleRequest,
) -> Result<DeploymentProtectionRule, Error<ReposSlashCreateDeploymentProtectionRuleError>>
Expand description

Enable a custom deployment protection rule for an environment. The authenticated user must have admin or owner permissions to the repository to use this endpoint. 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.