GitLab API

GitlabTool

Actions1095

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines

AI-generated

Summary

Trigger a pipeline run for a specific merge request within a GitLab project by sending a POST request to the merge request pipelines API endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request for which to trigger a pipeline.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines (required) — The request body schema defining details for the pipeline trigger (specific shape per the GitLab API).
  • skipAuthentication — Optional flag to skip authentication for the request (default false).
  • baseUrl — Optional base URL for the GitLab instance; defaults to https://gitlab.com.

Output shape

a JSON object representing the newly triggered pipeline details as returned by GitLab's merge request pipeline API.

The response format follows GitLab's merge request pipeline creation endpoint schema. Authentication is required unless explicitly skipped. The operation sends a POST request to the path /api/v4/projects/{id}/merge_requests/{merge_request_iid}/pipelines.

Examples

Example 1: Trigger a new pipeline for a merge request

Provide the project ID, merge request IID, and required pipeline parameters; execute to start the pipeline and receive its data.

Links

Discussion