add_merge_request_line_comment
Add a line-specific comment to a merge request diff by specifying project, merge request, file path, line number, and commit SHAs. Enable precise code review feedback directly on the relevant line.
Instructions
Add a line-specific comment to a merge request diff.
Args: project_id: GitLab project ID mr_iid: Merge request IID file_path: Path to the file in the repository line_number: Line number in the new version of the file comment: Comment text to add base_sha: Base commit SHA (from diff) head_sha: Head commit SHA (from diff) start_sha: Start commit SHA (from diff) old_line: Line number in the old version (optional, for modified lines)
Returns: Confirmation message with comment details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_iid | Yes | ||
| comment | Yes | ||
| base_sha | Yes | ||
| head_sha | Yes | ||
| old_line | No | ||
| file_path | Yes | ||
| start_sha | Yes | ||
| project_id | Yes | ||
| line_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |