GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals

AI-generated

Summary

Retrieve the approval details of a specific merge request within a GitLab project by providing the project ID and the merge request IID.

Inputs

  • id (required) — The unique identifier of the GitLab project.
  • merge_request_iid (required) — The internal ID of the merge request within the project.
  • skipAuthentication — Optionally skip authentication when making the API request (defaults to false).
  • baseUrl — The base URL of the GitLab instance (defaults to https://gitlab.com).
  • method — HTTP method to use; for this operation, GET is used by default.

Output shape

a single JSON object representing the approval status and details of the specified merge request

Returns the approval information of the merge request specified by 'id' and 'merge_request_iid'. Requires authentication unless 'skipAuthentication' is set to true.

Examples

Example 1: Retrieve merge request approvals

Set 'id' to the project numeric ID and 'merge_request_iid' to the merge request Iid to fetch its approvals.

Links

Discussion