GET
github_repos_get_commit.py
Requires
repo, read:user. Pages by number: page with per_page.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get one commit with its diff and per-file line counts. Note that page/per_page here page the files of the one commit, not a list of commits — GitHub stops at 300 files per page and 3,000 in total.
from charter.packs import github
result = await github.repos_get_commit.ainvoke({"owner": ..., "repo": ..., "ref": ...})
repo, read:user. Pages by number: page with per_page.| 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. |
ref * | string | The commit reference: a commit SHA, a branch name (heads/BRANCH_NAME), or a tag (tags/TAG_NAME). |
| 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 |
Was this page helpful?