PUT
github_repos_create_or_update_file.py
from charter.packs import github
result = await github.repos_create_or_update_file.ainvoke({"owner": ..., "repo": ..., "path": ..., "message": ..., "content": ...})
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. |
path * | string | Path to the file, relative to the repository root. |
Body
| Field | Type | Description |
|---|---|---|
message * | string | The commit message. |
content * | stringbase64 | Plain text content |
sha | string | The blob SHA of the file being replaced. Required when updating an existing file, omitted when creating a new one. |
branch | string | The branch to commit to. Absent, the default branch. |
committer | GitAuthor | Who made the commit. Absent, the authenticated user. |
author | GitAuthor | Who wrote the change, if not the committer. |