GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIid

AI-generated

Summary

Retrieve a single merge request from a specific GitLab project using the project ID or URL-encoded path and the merge request's internal ID.

Inputs

  • id (required) — The ID or URL-encoded path of the project to query.
  • merge_request_iid (required) — The internal ID of the merge request to retrieve.
  • render_html — If true, includes rendered HTML for the merge request's title and description in the response.
  • include_diverged_commits_count — If true, includes the count of commits behind the target branch.
  • include_rebase_in_progress — If true, indicates if a rebase operation is in progress for the merge request.

Output shape

a single merge request object with detailed properties according to the GitLab API v4 specification for the endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid}.

The output depends on optional query parameters that can add rendered HTML fields and extra metadata fields. Only one merge request is returned matching the project and merge request IID specified. Authentication is required unless "Skip Authentication" is set to true.

Links

Discussion