GitLab API

GitlabTool

Actions1095

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidVersions

AI-generated

Summary

Retrieve all versions (diffs) of a specific merge request in a GitLab project, supporting pagination through optional query parameters.

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 retrieve versions for.
  • page — The page number of the results to return; used for pagination.
  • per_page — The number of items to return per page; used for pagination.

Output shape

a paginated list of merge request versions (diff snapshots) in JSON format

Supports standard GitLab API pagination with 'page' and 'per_page' query parameters. Returns all available versions of the specified merge request, which detail changes over time.

Links

Discussion