UNPKG

semantic-release-gerrit

Version:

Gerrit release notes generator plugin for semantic-release

35 lines (23 loc) 2.24 kB
# **semantic-release-gerrit** Customizable plugin for [semantic-release](https://github.com/semantic-release/semantic-release) to support projects in the [Gerrit](https://www.gerritcodereview.com) repositories [![Build Status](https://travis-ci.com/pascalMN/semantic-release-gerrit.svg?branch=master)](https://travis-ci.com/pascalMN/semantic-release-gerrit) [![npm latest version](https://img.shields.io/npm/v/semantic-release-gerrit/latest.svg)](https://www.npmjs.com/package/semantic-release-gerrit) ## generateNotes Generates notes using [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) with ability to generate Gerrit review commit URL's. Also in notes header there is option to add Gerrit tag URL if there is [gitiles](https://gerrit.googlesource.com/gitiles/) plugin installed. ### Options ```json "generateNotes": [ { "path": "semantic-release-gerrit", "gerritUrl": "http://localhost:8080", "issuesUrl": "http://jira.com/browse" } ] ``` | Option | Description | Default | | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | | `gerritUrl` | URL to [Gerrit](https://www.gerritcodereview.com) dashboard | If not specified dashboard URL will be generated from repository URL | | `issuesUrl` | Optional URL to issues browser| - | ### Usage The plugin is used by [semantic-release](https://github.com/semantic-release/semantic-release) in **generateNotes** stage. Thanks for this commit URL's in notes indicates reviews in Gerrit dashboard.