Update repository file
update_fileReplace a file in a GitLab repository and commit the change. Provide last_commit_id to prevent overwriting concurrent edits.
Instructions
Replace a repository file and commit the change. Supply last_commit_id to prevent overwriting a concurrent edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | Yes | ||
| content | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| encoding | No | text | |
| author_name | No | ||
| author_email | No | ||
| start_branch | No | ||
| commit_message | Yes | ||
| last_commit_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |