POST
github_git_trees_create.py
from charter.packs import github
result = await github.git_trees_create.ainvoke({"owner": ..., "repo": ..., "tree": ...})
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. |
Body
| Field | Type | Description |
|---|---|---|
tree * | TreeEntry[] | One entry per path being added, changed or removed. min 1 items; max 100000 items |
baseTree | string | The SHA1 of an existing Git tree object which will be used as the base for the new tree — normally the tree.sha of the commit you are building on. Entries in tree overwrite entries with the same path. Omitting it means the new tree contains only the entries listed, so a commit on it deletes every other file in the repository. |