Function repos_slash_create_deployment_branch_policy

Source
pub async fn repos_slash_create_deployment_branch_policy(
    configuration: &Configuration,
    owner: &str,
    repo: &str,
    environment_name: &str,
    deployment_branch_policy_name_pattern_with_type: DeploymentBranchPolicyNamePatternWithType,
) -> Result<DeploymentBranchPolicy, Error<ReposSlashCreateDeploymentBranchPolicyError>>
Expand description

Creates a deployment branch or tag policy for an environment. OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.