gitlab api pro icon

gitlab api pro

Extended GitLab node

Merge Request → Create

AI-generated

Summary

Create a new merge request in a specified GitLab project by providing the source branch, target branch, and title, with an optional detailed description.

Inputs

  • authentication — Select whether to use saved credentials or custom fields for authentication (optional, defaults to saved credentials).
  • GitLab Server — Base URL of the GitLab instance, used if custom authentication is selected (default: https://gitlab.com).
  • Access Token — Personal access token with API permissions, used if custom authentication is selected.
  • Project Locator — Method to identify the project: by numeric ID or by namespace/path (default: id).
  • Project ID — Numeric ID of the target project, required if project locator is 'id'.
  • Project Owner — Namespace or owner of the project, required if project locator is 'path'.
  • Project Name — Project slug or name, required if project locator is 'path'.
  • Source Branch (required) — Name of the source branch for the merge request, e.g., 'feature/api'.
  • Target Branch (required) — Name of the target branch to merge into, e.g., 'main' (default: 'main').
  • Title (required) — Title text for the merge request, e.g., 'Fix login bug'.
  • Description — Detailed description or notes for the merge request (optional).

Output shape

a single record

Returns the created merge request's JSON object with details as per GitLab's API response.

Links

Discussion