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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create GitHub pull request review

> Submit an approval, comment, or change request on a pull request.

`createGitHubPullRequestReview` submits one summary review without inline file comments.

```ts automations/approve-github-pull-request.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { createGitHubPullRequestReview } from "automate.ax/github"

export default automation("Approve GitHub pull request", () => {
  onHttpRequest({ scope: "automation" })
  createGitHubPullRequestReview({
    owner: "SentsCo",
    repository: "automate.ax",
    pullRequestNumber: 173,
    event: "APPROVE",
    body: "Automated checks passed.",
  })
})
```

`owner`, `repository`, positive integer `pullRequestNumber`, and `event` (`"APPROVE"`, `"COMMENT"`, or `"REQUEST_CHANGES"`) are required. Optional `body`, `commitId`, and `account` default to no text, the current head commit, and the project binding. Inputs accept compatible signals.

Returns GitHub's complete typed review object. GitHub may require review text for comments or change requests and rejects approvals by the pull request author or reviews of an inaccessible commit.
