GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidChanges

AI-generated

Summary

Retrieve the list of changes (diffs) for a specific merge request in a GitLab project using the GET method on the /api/v4/projects/{id}/merge_requests/{merge_request_iid}/changes endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to which the merge request belongs.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the specified project.
  • unidiff — A query parameter (boolean) indicating whether to receive the diff in Unified diff format. Defaults to false.
  • skipAuthentication — Optionally skip authentication for the request. Defaults to false.
  • baseUrl — Base URL of the GitLab instance. Defaults to https://gitlab.com.

Output shape

a single record representing the merge request changes, including diffs for the specified merge request

This operation returns the detailed changes for the merge request identified by id and merge_request_iid. The response includes the changes data as defined by the GitLab API. Parameters id and merge_request_iid are mandatory. Optional query parameter unidiff controls diff formatting. Authentication is required unless skipAuthentication is set to true. The base URL defaults to the official GitLab but can be overridden.

Links

Discussion