gitlab_safe_preview_commit
Simulate GitLab commits to preview changes without altering the repository. Validates file operations, including create, update, delete, and move, and displays potential impacts for thorough verification before actual commits.
Instructions
Simulate a commit to preview resulting changes without modifying the repository. Validates file operations and shows what would change. Useful for verification before actual commit.
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} | |
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 |