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

# repos_list_commits

> List commits, newest first. Narrow with `sha` for a branch, `path` for one file's history, or `since`/`until` for a window.

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

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

result = await github.repos_list_commits.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>                                   |
  | `sha`     | `string`  | SHA or branch to start listing commits from. Defaults to the repository's default branch.                                                                 |
  | `path`    | `string`  | Only commits containing this file path will be returned.                                                                                                  |
  | `author`  | `string`  | GitHub username or email address to filter commits by author.                                                                                             |
  | `since`   | `string`  | Only commits after this date will be returned, in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. <span className="field-constraints">format `date-time`</span>  |
  | `until`   | `string`  | Only commits before this date will be returned, in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. <span className="field-constraints">format `date-time`</span> |
</div>
