POST
github_git_commits_create.py
from charter.packs import github
result = await github.git_commits_create.ainvoke({"owner": ..., "repo": ..., "message": ..., "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 |
|---|---|---|
message * | string | The commit message. |
tree * | string | The SHA of the tree object this commit points to. |
parents | string[] | The full SHAs of the commits that were the parents of this commit — normally one, the current head of the branch. For a merge commit, more than one. Required: an explicit empty list writes a root commit with no history, and omitting the field altogether is refused rather than treated as that. |
author | GitCommitAuthor | Information about the author of the commit. By default, the author will be the authenticated user and the current date. |
committer | GitCommitAuthor | Information about the person who is making the commit. By default, committer will use the information set in author. |
signature | string | The PGP signature of the commit, as an ASCII-armored detached signature. GitHub adds it to the gpgsig header of the created commit. |