Prepare review folder (worktree + install)
gitlab_prepare_reviewSet up a local review environment for a GitLab merge request by creating a worktree and installing dependencies automatically.
Instructions
Creates a worktree from local repo (repo_path) or shallow HTTPS clone with token. Runs npm ci or composer install by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Absolute local clone path; resolves project and MR from current branch. | |
| project_id | No | Numeric ID or group/repo path on GitLab. | |
| install_command | No | Shell command at worktree root (e.g. npm ci). Omit to auto-detect. | |
| merge_request_iid | No | Merge request IID. Omit with repo_path to resolve from current branch. |