create_file
Create a new file in a GitLab repository with dry-run preview to prevent accidental changes. Requires project ID, file path, branch, content, and commit message.
Instructions
Create a new file in a repository. Rejects if the file already exists. dry_run=true by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| file_path | Yes | File path in repository | |
| branch | Yes | Branch to commit to | |
| content | Yes | File content | |
| commit_message | Yes | Commit message | |
| encoding | No | Content encoding. Default: text. | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |