update_file
Update a file in a repository by providing its path, base64-encoded new content, and SHA for conflict detection, along with a commit message.
Instructions
Update an existing file in a repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Owner/username | |
| repo | Yes | Repository name | |
| filepath | Yes | File path in the repository | |
| content | Yes | Base64 encoded new file content | |
| sha | Yes | Blob SHA of the existing file (for conflict detection) | |
| message | Yes | Commit message for the update | |
| branch | No | Branch name |