No release in over 3 years
Low commit activity in last 3 years
Automation gitlab release tools from MR and issues for your new versions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
>= 0
~> 10.0
~> 3.0
>= 0

Runtime

~> 4.12.0
 Project Readme

gitlab-release-tools

License Gem Build Status

Installation

Add this line to your application's Gemfile:

gem 'gitlab-release-tools'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install gitlab-release-tools

Usage

endpoint = 'endpoint' # or value from ENV for CI/CD
private_token = 'private_token' # or value from ENV for CI/CD
project_id = 50 # or value from ENV for CI/CD
version = '1.0'

generator = Gitlab::Release::Changelog::Generator.new(endpoint: endpoint, private_token: private_token)
changelog = generator.changelog(version, project_id: project_id)
# print(changelog) for a simple changelog list
# print(changelog.to_s_with_reference) for a changelog list with mrs/issues references 

manager = Gitlab::Release::Manager.new(endpoint: endpoint, private_token: private_token)
manager.define_tag(version, changelog.to_s_with_reference)
manager.close_milestones(version)

Check out the documentation for more.

Development

  1. Install this gem onto your local machine, bundle exec rake install.
  2. Copy .env.example and rename with .env.
  3. Define Gitlab base url and generate a private token.
  4. You are ready to go!

Contributing

Bug reports and pull requests are welcome.

License

The gem is available as open source under the terms of the MIT License.