MergeRequest
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"
Examples
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
projectId *Requiredstring
Project ID
GitLab project ID
sourceBranch *Requiredstring
Source branch
targetBranch *Requiredstring
Target branch
title *Requiredstring
Merge request title
token *Requiredstring
Personal Access Token
GitLab Personal Access Token
apiPath string
Default
/api/v4/projects
API Path
Custom API path for GitLab API endpoints
mergeRequestDescription string
Merge request description
url string
Default
https://gitlab.com
GitLab URL
GitLab URL
Outputs
mergeReqID string
Created merge request ID
statusCode integer
HTTP status code
webUrl string
web URL