Comment on MR code
gitlab_create_merge_request_threadStart a review thread on a merge request, anchored to a specific code line using file path and diff references, or as a general discussion.
Instructions
Starts a review thread. With file_path + line + diff_refs it anchors to a specific line; without them it posts a general discussion. Get diff_refs from gitlab_get_merge_request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment body | |
| base_sha | No | From the MR `diff_refs` | |
| head_sha | No | ||
| new_line | No | Line number in the new file | |
| old_line | No | Line number in the old file | |
| file_path | No | Path to comment on; omit for a general comment | |
| start_sha | No | ||
| project_id | No | Project id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID. | |
| merge_request_iid | Yes |