gitlab-merge-request-pipe
v1.12.8
Published
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?labelColor=gray&l
Downloads
37
Readme
Gitlab Merge Request Pipe
Bitbucket pipe for creating a GitLab merge request.
Usage
Add this pipe to your bitbucket-pipelines.yml
:
script:
- pipe: docker://tomerh2001/gitlab-merge-request-pipe:latest
variables:
GITLAB_TOKEN: 'Your_GitLab_Private_Token'
GITLAB_PROJECT_ID: 'Your_Project_ID'
Docker Environment Variables
| Name | Description | Default | Required |
| ------------------------- | ------------------------------------------ | --------------------------------- | -------- |
| GITLAB_TOKEN | GitLab private token. | - | Yes |
| GITLAB_PROJECT_ID | GitLab project ID. | - | Yes |
| GITLAB_URL | GitLab instance URL. | 'https://gitlab.com' | No |
| VERSION | Release version. | Version in package.json
| No |
| GITLAB_SOURCE_BRANCH | Source branch for merge request. | 'release/v{VERSION}' | No |
| GITLAB_TARGET_BRANCH | Target branch for merge request. | 'main' | No |
| PUSH_SOURCE_BRANCH | Push source branch or not. | 'true' | No |
| CREATE_MERGE_REQUEST | Create a merge request or not. | 'true' | No |
| GITLAB_MERGE_DESCRIPTION | Merge request description. | Changelog between last two tags | No |
| SSL_VERIFY | SSL verification. | 'false' | No |
| CHANGELOG_OUTPUT_PATH | Path to output the CHANGELOG diff file. | BITBUCKET_PIPE_SHARED_STORAGE_DIR
or null | No |
| SSH_TUNNEL_URL| SSH endpoint for creating an SSH tunnel to your GitLab. | null | No |