gitlab_add_merge_request_comment
Add a comment to a GitLab merge request, supporting markdown, code blocks, mentions, and references. Automatically detects the project or specify it manually with the merge request ID.
Instructions
Post a new comment on a merge request discussion thread. Supports markdown, code blocks, mentions, and references. Returns the created note with author and timestamp.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | Comment text content (string, required). Supports markdown, mentions (@user), and references (#123, !456) | |
mr_iid | Yes | Merge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID | |
project_id | No | Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided |