> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# actions_review_pending_deployments

> Approve or reject a run's pending deployments. Takes the environment ids from `actions_list_pending_deployments`. A comment is required by GitHub, not optional.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.github.com/repos/{owner}/{repo}/actions/runs/{runId}/pending_deployments"}</code></div>

```python github_actions_review_pending_deployments.py theme={null}
from charter.packs import github

result = await github.actions_review_pending_deployments.ainvoke({"owner": ..., "repo": ..., "runId": ..., "environmentIds": ..., "state": ..., "comment": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                         | Type      | Description                                                                              |
  | ------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span> | `string`  | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>  | `string`  | The name of the repository without the `.git` extension. The name is not case sensitive. |
  | `runId` <span className="required" title="required">\*</span> | `integer` | The ID of the workflow run.                                                              |
</div>

## Body

<div className="reference-table">
  | Field                                                                  | Type                                                                                 | Description                                                                                                                      |
  | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
  | `environmentIds` <span className="required" title="required">\*</span> | `integer`\[]                                                                         | The list of environment ids to approve or reject. These are the `environment.id` values from `actions_list_pending_deployments`. |
  | `state` <span className="required" title="required">\*</span>          | [DeploymentReviewState](/charter/charter/packs/github/actions/objects#deploymentreviewstate) | Whether to approve or reject deployment to the specified environments.                                                           |
  | `comment` <span className="required" title="required">\*</span>        | `string`                                                                             | A comment to accompany the deployment review.                                                                                    |
</div>
