get_merge_request_diffs
Retrieve code changes from GitLab merge requests to review modifications, compare branches, and analyze differences between code versions.
Instructions
Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| merge_request_iid | No | The IID of a merge request | |
| source_branch | No | Source branch name | |
| view | No | Diff view type |
Input Schema (JSON Schema)
{
"properties": {
"merge_request_iid": {
"description": "The IID of a merge request",
"type": "number"
},
"project_id": {
"description": "Project ID or complete URL-encoded path to project",
"type": "string"
},
"source_branch": {
"description": "Source branch name",
"type": "string"
},
"view": {
"description": "Diff view type",
"enum": [
"inline",
"parallel"
],
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}