gitlab api pro icon

gitlab api pro

Extended GitLab node

Branch → Merge

AI-generated

Summary

Merges a source branch into a target branch in the specified GitLab project.

Inputs

  • authentication — Select whether to use saved credentials or custom fields (default: credential).
  • server — Base URL of your GitLab instance, for example "https://gitlab.com" (required when using custom authentication).
  • accessToken — Personal access token with API permissions (required when using custom authentication).
  • projectLocator — Choose how to identify the project for project-scoped endpoints (default: id).
  • projectOwner — Namespace or owner of the project. Used when Project Locator is set to "Path".
  • projectName — Project slug or name. Used when Project Locator is set to "Path".
  • projectId — Numeric project ID. Used when Project Locator is set to "ID".
  • branch (required) — Branch name to merge from.
  • targetBranch (required) — Target branch to merge into.

Output shape

A list of items containing the merge request details.

Returns the details of the merge request created by the merge action.

Examples

Example 1: Merge a feature branch into main

Branch: feature/login, Target Branch: main, Project ID: 123

Example 2: Merge using custom authentication

Custom Server: https://gitlab.company.com, Custom Access Token, Branch: develop, Target Branch: release/v1.0

Links

Discussion