gitlab_create_commit
Create a new GitLab commit with multiple file operations in a single atomic transaction. Supports create, update, delete, and move actions on specified branches with custom commit messages and author details.
Instructions
Create a new commit with multiple file operations in a single atomic transaction. Supports create/update/delete/move actions. Specify branch, commit message, and author details.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
actions | Yes | Array of file operations (array of objects, required). Each action: {action: 'create'|'update'|'delete'|'move', file_path: string, content?: string} | |
author_email | No | Commit author email (string, optional). Overrides authenticated user's email. Must be valid email format | |
author_name | No | Commit author name (string, optional). Overrides authenticated user's name. Any valid string | |
branch | Yes | Git branch name (string, required). Target branch for commits. Must exist. Example: 'feature/new-feature' | |
commit_message | Yes | Commit message (string, required). Follows conventional commits format. First line = summary (50 chars), blank line, then body | |
project_id | No | Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided |