> ## 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.

# Get GitHub pull request

> Get one GitHub pull request by repository-local number.

`getGitHubPullRequest` gets a pull request with its branches, merge state, requested reviewers, labels, and repository metadata.

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

export default automation("Get GitHub pull request", () => {
  onHttpRequest({ scope: "automation" })
  getGitHubPullRequest({
    owner: "SentsCo",
    repository: "automate.ax",
    pullRequestNumber: 173,
  })
})
```

`owner`, `repository`, and positive integer `pullRequestNumber` are required. Optional `account` defaults to the project binding. Inputs accept compatible signals.

Returns GitHub's complete typed pull request object. GitHub returns an error when the installation cannot access the repository or the pull request does not exist.
