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

# pulls_list

> List pull requests. Filter by `state`, by `base` branch, or by `head` in the form 'user:branch'.

<div className="tool-route"><span className="tool-row-method" data-method="GET">GET</span><code>{"https://api.github.com/repos/{owner}/{repo}/pulls"}</code></div>

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

result = await github.pulls_list.ainvoke({"owner": ..., "repo": ...})
```

<Note>
  Requires `repo`, `read:user`. Pages by number: `page` with `per_page`.
</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. |
</div>

## Query parameters

<div className="reference-table">
  | Field       | Type                                                                | Description                                                                                                                               |
  | ----------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
  | `perPage`   | `integer`                                                           | The number of results per page (max 100). Defaults to 30. <span className="field-constraints">≥ 1; ≤ 100; defaults to `30`</span>         |
  | `page`      | `integer`                                                           | The page number of the results to fetch. Defaults to 1. <span className="field-constraints">≥ 1; defaults to `1`</span>                   |
  | `state`     | [IssueState](/charter/charter/packs/github/issues/objects#issuestate)       | Either `open`, `closed`, or `all` to filter by state. Defaults to `open`. <span className="field-constraints">defaults to `"open"`</span> |
  | `head`      | `string`                                                            | Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`.               |
  | `base`      | `string`                                                            | Filter pulls by base branch name. Example: `gh-pages`.                                                                                    |
  | `sort`      | [PullSort](/charter/charter/packs/github/pulls/objects#pullsort)            | What to sort results by. Defaults to `created`. <span className="field-constraints">defaults to `"created"`</span>                        |
  | `direction` | [SortDirection](/charter/charter/packs/github/issues/objects#sortdirection) | The direction of the sort. Default: `desc` when sort is `created` or not specified, otherwise `asc`.                                      |
</div>
