1.0.5 • Published 8 months ago

semantic-release-gitlab-merge-request v1.0.5

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

semantic-release-gitlab-merge-request

semantic-release XO code style

semantic-release plugin to automate the creation of merge requests for GitLab repositories when releasing new versions.

Features

  • Prepare the release by pushing the release branch to GitLab.
  • Automatically create a merge request for the new release.

Install

$ npm install semantic-release-gitlab-merge-request -D 
$ yarn add semantic-release-gitlab-merge-request --dev
$ bun i semantic-release-gitlab-merge-request --dev

Usage

To use this plugin, add it to your semantic-release configuration. For instance:

{
  "plugins": [
    "semantic-release-gitlab-merge-request"
  ]
}

Configuration

Environment Variables

VariableDescription
GITLAB_TOKENRequired. The token used to authenticate with GitLab.
GITLAB_URLThe GitLab instance URL (e.g., 'https://gitlab.com').
GITLAB_PROJECT_IDRequired. The ID of the GitLab project.
GITLAB_SOURCE_BRANCHThe source branch for the merge request (defaults to release/vx.y.z)

Options

OptionDescriptionDefault
gitlabTokenThe token used to authenticate with GitLab.-
gitlabUrlThe GitLab instance URL.'https://gitlab.com'
projectIdThe ID of the GitLab project.-
sourceBranchThe source branch for the merge request.release/vx.y.z
targetBranchRequired. The target branch for the merge request.-

Remember to replace x.y.z with the appropriate version numbers.

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

MIT License

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago