pub async fn repos_slash_create_or_update_environment(
configuration: &Configuration,
owner: &str,
repo: &str,
environment_name: &str,
repos_create_or_update_environment_request: Option<ReposCreateOrUpdateEnvironmentRequest>,
) -> Result<Environment, Error<ReposSlashCreateOrUpdateEnvironmentError>>
Expand description
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see "Environments." Note: To create or update name patterns that branches must match in order to deploy to this environment, see "Deployment branch policies." Note: To create or update secrets for an environment, see "GitHub Actions secrets." OAuth app tokens and personal access tokens (classic) need the repo
scope to use this endpoint.