Create repository commit
create_commitCreate a GitLab commit with atomic file actions: add, update, move, or change file mode. Guard concurrent updates by requiring last_commit_id, and branch safely from an existing SHA or start branch.
Instructions
Create one GitLab commit containing non-destructive atomic create, update, move, or chmod actions. update and move require a per-file last_commit_id to guard against concurrent overwrites. Do not supply both start_branch and start_sha; use start_branch for new-branch creation only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| actions | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| start_sha | No | Full 40-character commit SHA for new-branch creation. Mutually exclusive with start_branch. | |
| author_name | No | ||
| author_email | No | ||
| start_branch | No | ||
| commit_message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |