GET
github_git_trees_get.py
from charter.packs import github
result = await github.git_trees_get.ainvoke({"owner": ..., "repo": ..., "treeSha": ...})
Requires
repo, read:user.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. |
treeSha * | string | The SHA1 value or ref (branch or tag) name of the tree. A branch name works here, which saves resolving it first. |
Query parameters
| Field | Type | Description |
|---|---|---|
recursive | string | Set to ‘1’ to return every object in every subtree, rather than the top level only. GitHub treats any value as true here, including ‘0’ and ‘false’ — omit the parameter to stay shallow. The recursive form is capped at 100,000 entries and 7 MB, and sets truncated when it hits that. |