GitLab API

GitlabTool

Actions1095

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidCancelMergeWhenPipelineSucceeds

AI-generated

Summary

Cancel the automatic merge of a merge request in a specified GitLab project when its pipeline succeeds.

Inputs

  • id (required) — The ID or URL-encoded path of the project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request to cancel the automatic merge for.
  • skipAuthentication — Whether to skip authentication; defaults to false (authentication enabled).
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

A single record representing the HTTP response from the GitLab API indicating the result of the cancellation request.

This operation performs a POST request to the endpoint '/api/v4/projects/{id}/merge_requests/{merge_request_iid}/cancel_merge_when_pipeline_succeeds'. It requires authenticated access via the 'gitlabApi' credential unless 'skipAuthentication' is set to true.

Links

Discussion