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

# List GitHub pull requests

> List and filter a page of pull requests in one repository.

`listGitHubPullRequests` lists pull requests with branch, state, sorting, and pagination filters.

```ts automations/list-github-pull-requests.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { listGitHubPullRequests } from "automate.ax/github"

export default automation("List GitHub pull requests", () => {
  onHttpRequest({ scope: "automation" })
  listGitHubPullRequests({
    owner: "SentsCo",
    repository: "automate.ax",
    base: "main",
  })
})
```

`owner` and `repository` are required. Optional filters are `base`, `head` (`owner:branch` for forks), `state` (`"open"`, `"closed"`, or `"all"`; default `"open"`), `sort` (`"created"`, `"updated"`, `"popularity"`, or `"long-running"`), and `direction`. `page` defaults to 1 and `perPage` defaults to 30 with a maximum of 100. Optional `account` defaults to the project binding. Inputs accept compatible signals.

Returns a typed array of GitHub pull request summaries. Request another page while the returned page length equals `perPage`.
