create_or_update_file
Create or update a file in any GitHub repository by specifying the repo, file path, and content. Supports commits with custom messages and branch selection.
Instructions
Create or update a single file in a GitHub repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository in 'owner/repo' format. | |
| path | Yes | File path to create/update. | |
| content | Yes | New file content. | |
| message | No | Commit message (default: auto-generated). | |
| branch | No | Branch to commit to (default: repo default branch). | |
| sha | No | Blob SHA of file being replaced (required for updates). | |
| dry_run | No | If True, preview the operation without executing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |