lab-changelog

Ever needed to generate a changlog of what has been merged since the latest tag? No need to look further. This tool will help you.

Usage no npm install needed!

<script type="module">
  import labChangelog from 'https://cdn.skypack.dev/lab-changelog';
</script>

README

lab-changelog

Ever needed to generate a changlog of what has been merged since the latest tag? No need to look further. This tool will help you.

oclif Version Downloads/week License

Installation

npm install (-g) lab-changelog

Under the hood we need the host of your gitlab installation and a personal access token. To inject these add them as ENV variables.

The personal access token can be created from your profile in gitlab

TOKEN=my_personal_access_token HOST=https://gitlab.com lab-changelog

Usage

$ npm install -g lab-changelog
$ lab-changelog COMMAND
running command...
$ lab-changelog (-v|--version|version)
lab-changelog/1.0.0 darwin-x64 node-v14.8.0
$ lab-changelog --help [COMMAND]
USAGE
  $ lab-changelog COMMAND
...

Commands

lab-changelog help [COMMAND]

display help for lab-changelog

USAGE
  $ lab-changelog help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

lab-changelog mr PROJECT

Get a list of merge requests that have been closed since latest tag

USAGE
  $ lab-changelog mr PROJECT

OPTIONS
  -h, --help           show CLI help
  -o, --output=md|raw  [default: raw]
  -t, --target=target  [default: master]

EXAMPLES
  mr api
  mr api --target dev
  mr api --target dev --output md

See code: src/commands/mr.ts

Development

Pull requests is very welcome.

  • Clone the repo
  • run npm install
  • To test your commands run ./bin/run