MergeRequest​Merge​Request

Create a GitLab merge request.

Create a new merge request in a GitLab project. You need to provide a valid GitLab project ID and a personal access token with the necessary permissions.

yaml
type: "io.kestra.plugin.gitlab.MergeRequest"

Create a merge request in a GitLab project using a project access token.

yaml
id: gitlab_merge_request
namespace: company.team

tasks:
  - id: create_merge_request
    type: io.kestra.plugin.gitlab.MergeRequest
    url: https://gitlab.example.com
    token: "{{ secret('GITLAB_TOKEN') }}"
    projectId: "123"
    title: "Feature: Add new functionality"
    mergeRequestDescription: "This merge request adds new functionality to the project"
    sourceBranch: "feat-testing"
    targetBranch: "main"
Properties

Project ID

GitLab project ID

Source branch

Target branch

Merge request title

Personal Access Token

GitLab Personal Access Token

Default /api/v4/projects

API Path

Custom API path for GitLab API endpoints

Merge request description

Default https://gitlab.com

GitLab URL

GitLab URL

Created merge request ID

HTTP status code

web URL