Mutations
approveDeployments
Approve all pending deployments under one or more environments.
Input fields for approveDeployments
input(ApproveDeploymentsInput!)
Return fields for approveDeployments
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The affected deployments. |
createDeployment
Creates a new deployment event.
Input fields for createDeployment
input(CreateDeploymentInput!)
Return fields for createDeployment
| Name | Description |
|---|---|
| True if the default branch has been auto-merged into the deployment ref. |
| A unique identifier for the client performing the mutation. |
| The new deployment. |
createDeploymentStatus
Create a deployment status.
Input fields for createDeploymentStatus
input(CreateDeploymentStatusInput!)
Return fields for createDeploymentStatus
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new deployment status. |
createEnvironment
Creates an environment or simply returns it if already exists.
Input fields for createEnvironment
input(CreateEnvironmentInput!)
Return fields for createEnvironment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new or existing environment. |
deleteDeployment
Deletes a deployment.
Input fields for deleteDeployment
input(DeleteDeploymentInput!)
Return fields for deleteDeployment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
deleteEnvironment
Deletes an environment.
Input fields for deleteEnvironment
input(DeleteEnvironmentInput!)
Return fields for deleteEnvironment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
pinEnvironment
Pin an environment to a repository.
Input fields for pinEnvironment
input(PinEnvironmentInput!)
Return fields for pinEnvironment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The environment that was pinned. |
| The pinned environment if we pinned. |
rejectDeployments
Reject all pending deployments under one or more environments.
Input fields for rejectDeployments
input(RejectDeploymentsInput!)
Return fields for rejectDeployments
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The affected deployments. |
reorderEnvironment
Reorder a pinned repository environment.
Input fields for reorderEnvironment
input(ReorderEnvironmentInput!)
Return fields for reorderEnvironment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The environment that was reordered. |
updateEnvironment
Updates an environment.
Input fields for updateEnvironment
input(UpdateEnvironmentInput!)
Return fields for updateEnvironment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated environment. |
Objects
DeployedEvent
Represents adeployedevent on a given pull request.
DeployedEvent Implements
Fields for DeployedEvent
| Name | Description |
|---|---|
| Identifies the actor who performed the event. |
| Identifies the date and time when the object was created. |
| Identifies the primary key from the database. |
| The deployment associated with the |
| The Node ID of the DeployedEvent object. |
| PullRequest referenced by event. |
| The ref associated with the |
Deployment
Represents triggered deployment instance.
Deployment Implements
Fields for Deployment
| Name | Description |
|---|---|
| Identifies the commit sha of the deployment. |
| Identifies the oid of the deployment commit, even if the commit has been deleted. |
| Identifies the date and time when the object was created. |
| Identifies the actor who triggered the deployment. |
| Identifies the primary key from the database. |
| The deployment description. |
| The latest environment to which this deployment was made. |
| The Node ID of the Deployment object. |
| The latest environment to which this deployment was made. |
| The latest status of this deployment. |
| The original environment to which this deployment was made. |
| Extra information that a deployment system might need. |
| Identifies the Ref of the deployment, if the deployment was created by ref. |
| Identifies the repository associated with the deployment. |
| The current state of the deployment. |
| A list of statuses associated with the deployment. |
| The deployment task. |
| Identifies the date and time when the object was last updated. |
DeploymentConnection
The connection type for Deployment.
Fields for DeploymentConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DeploymentEdge
An edge in a connection.
Fields for DeploymentEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DeploymentEnvironmentChangedEvent
Represents adeployment_environment_changedevent on a given pull request.
DeploymentEnvironmentChangedEvent Implements
Fields for DeploymentEnvironmentChangedEvent
| Name | Description |
|---|---|
| Identifies the actor who performed the event. |
| Identifies the date and time when the object was created. |
| The deployment status that updated the deployment environment. |
| The Node ID of the DeploymentEnvironmentChangedEvent object. |
| PullRequest referenced by event. |
DeploymentProtectionRule
A protection rule.
Fields for DeploymentProtectionRule
| Name | Description |
|---|---|
| Identifies the primary key from the database. |
| Whether deployments to this environment can be approved by the user who created the deployment. |
| The teams or users that can review the deployment. |
| The timeout in minutes for this protection rule. |
The type of protection rule. |
DeploymentProtectionRuleConnection
The connection type for DeploymentProtectionRule.
Fields for DeploymentProtectionRuleConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DeploymentProtectionRuleEdge
An edge in a connection.
Fields for DeploymentProtectionRuleEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DeploymentRequest
A request to deploy a workflow run to an environment.
Fields for DeploymentRequest
| Name | Description |
|---|---|
| Whether or not the current user can approve the deployment. |
| The target environment of the deployment. |
| The teams or users that can review the deployment. |
| The wait timer in minutes configured in the environment. |
| The wait timer in minutes configured in the environment. |
DeploymentRequestConnection
The connection type for DeploymentRequest.
Fields for DeploymentRequestConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DeploymentRequestEdge
An edge in a connection.
Fields for DeploymentRequestEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DeploymentReview
A deployment review.
DeploymentReview Implements
Fields for DeploymentReview
| Name | Description |
|---|---|
| The comment the user left. |
| Identifies the primary key from the database. |
| The environments approved or rejected. Arguments for
|
| The Node ID of the DeploymentReview object. |
| The decision of the user. |
| The user that reviewed the deployment. |
DeploymentReviewConnection
The connection type for DeploymentReview.
Fields for DeploymentReviewConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DeploymentReviewEdge
An edge in a connection.
Fields for DeploymentReviewEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DeploymentReviewerConnection
The connection type for DeploymentReviewer.
Fields for DeploymentReviewerConnection
| Name | Description |
|---|---|
| A list of edges. |
|