create_or_update_file
Create or update a single file in a GitLab repository and commit it to a chosen branch, with optional rename or move support.
Instructions
Create or update a single file in a GitLab repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch to commit to (e.g. 'main' or 'feature/auth') | |
| content | Yes | Full content of the file to write | |
| file_path | Yes | File path to create or update (e.g. 'docs/roadmap.md') | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. | |
| previous_path | No | If renaming or moving a file, specify the old path | |
| commit_message | Yes | Clear Git commit message describing the change |