github_update_file
Update an existing file in a GitHub repository by creating a commit with new content. Requires the current file SHA to prevent overwriting conflicts, and supports specifying a target branch.
Instructions
Update an existing file in a repository via a commit.
You need the current file's SHA (get it from github_get_file).
Args: owner: Repository owner repo: Repository name path: File path to update content: New file content message: Commit message sha: Current file SHA (required to prevent conflicts) branch: Branch to commit to (empty = default branch) session_name: GitHub session to use
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | ||
| path | Yes | ||
| repo | Yes | ||
| owner | Yes | ||
| branch | No | ||
| content | Yes | ||
| message | Yes | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |