semantic-release-gerrit
Version:
Gerrit release notes generator plugin for semantic-release
35 lines (23 loc) • 2.24 kB
Markdown
Customizable plugin for [semantic-release](https://github.com/semantic-release/semantic-release) to support projects in the [Gerrit](https://www.gerritcodereview.com) repositories
[](https://travis-ci.com/pascalMN/semantic-release-gerrit)
[](https://www.npmjs.com/package/semantic-release-gerrit)
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.
```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| - |
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.