GET
github_repos_list_commits.py
from charter.packs import github
result = await github.repos_list_commits.ainvoke({"owner": ..., "repo": ...})
Requires
repo, read:user. Pages by number: page with per_page.Path parameters
| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
Query parameters
| Field | Type | Description |
|---|---|---|
perPage | integer | The number of results per page (max 100). Defaults to 30. ≥ 1; ≤ 100; defaults to 30 |
page | integer | The page number of the results to fetch. Defaults to 1. ≥ 1; defaults to 1 |
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. format date-time |
until | string | Only commits before this date will be returned, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. format date-time |