create_or_update_file
Create or update files in GitHub repositories by providing content and commit messages, using SHA for updates to manage repository changes.
Instructions
Create or update a file in a repository. To update, you must provide the current file's SHA.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| path | Yes | File path in the repository | |
| content | Yes | File content (plain text, will be base64 encoded automatically) | |
| message | Yes | Commit message | |
| branch | No | Branch name (defaults to default branch) | |
| sha | No | Current blob SHA of the file (required for updates, omit for new files) |