create_diff_discussion
Post inline code review comments on a specific file and line in a GitLab merge request, with merge request SHAs resolved automatically.
Instructions
Post an inline code review comment on a specific line and file in an MR (resolves SHAs automatically)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Markdown review comment or suggestion | |
| line | Yes | Line number in the file to attach the review comment to | |
| file_path | Yes | Path to the file being reviewed (e.g. 'src/client.js') | |
| line_type | Yes | Whether the line is in the new version ('new') or old version ('old') of the diff (default: new) | new |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. | |
| merge_request_iid | Yes | Merge request IID |