Skip to content

GitHubEnvironment

Defined in: environments/environments.ts:5

A deployment environment of a repository and its protection settings.

name: string

Defined in: environments/environments.ts:7

The environment’s name.


optional prevent_self_review?: boolean

Defined in: environments/environments.ts:11

Whether the user who triggered a deployment may also approve it.


optional protection_rules?: object[]

Defined in: environments/environments.ts:13

The protection rules on the environment; each has a type and, for required reviewers, the reviewers.

optional reviewers?: object[]

type: string


optional wait_timer?: number

Defined in: environments/environments.ts:9

Minutes to wait before a job that targets the environment may proceed.