GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove

AI-generated

Summary

Approve a specific merge request within a GitLab project by providing the project ID and the merge request IID, along with approval details in the request body.

Inputs

  • id (required) — The integer ID of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request to approve within the specified project.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove (required) — An object containing the approval parameters as defined by the GitLab API schema for approving merge requests.

Output shape

a single JSON object representing the approval response from GitLab's API

Returns the merge request approval details as per GitLab API v4. Requires authentication via the configured GitLab API credential unless 'Skip Authentication' is enabled.

Links

Discussion