GET
github_branches_list.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.
List a repository’s branches and the commit each one points at.
from charter.packs import github
result = await github.branches_list.ainvoke({"owner": ..., "repo": ...})
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. |
| 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 |
protected | boolean | Limit to protected branches when true, unprotected when false. Absent, every branch is returned. |
Was this page helpful?