GitLab API

GitlabTool

Actions1095

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidChanges

AI-generated

Summary

Retrieve the list of changes (diffs) for a specific merge request in a GitLab project via the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request to fetch changes for.
  • unidiff — Optional query parameter that specifies whether to return the diff in Unified diff format.
  • baseUrl — Optional override of the GitLab API base URL (defaults to https://gitlab.com).
  • skipAuthentication — Optional boolean to skip using stored authentication credentials.

Output shape

A single JSON object representing the merge request changes as returned by the GitLab API endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid}/changes.

The response includes details about the changes made in the merge request, such as diffs for the affected files. The 'unidiff' parameter can modify the diff format if supported by the API. Authentication is required by default unless 'Skip Authentication' is set to true. The standard HTTP GET method is used.

Links

Discussion