@auto-it/released
Version:
Released plugin for auto. Comments with version + extra
107 lines (80 loc) • 1.67 kB
Markdown
This plugin
- comments on the merged PR with the new version
- comments on closed issues with the new version
- adds a `released` label to the pull request
- adds a `released` label to closed issues
> :warning: Make sure that you create the `released` label on you project
This plugin is included with the `auto` CLI so you do not have to install it. To install if you are using the `auto` API directly:
```bash
npm i --save-dev @auto-it/released
yarn add -D @auto-it/released
```
To use the plugin include it in your `.autorc`
```json
{
"plugins": ["released"]
}
```
Customize the label this plugin attaches to merged pull requests.
```json
{
"plugins": [
[
"released",
{
"label": ":shipit:"
}
]
]
}
```
Customize the prerelease label this plugin attaches to pull requests merged to prerelease branches.
```json
{
"plugins": [
[
"released",
{
"prereleaseLabel": "🚧"
}
]
]
}
```
To customize the message this plugin uses on issues and pull requests use the following format.
- `%TYPE` - Either `PR` or `Issue`
- `%VERSION` - The version that was just published
```json
{
"plugins": [
[
"released",
{
"message": "%TYPE went out with version: %VERSION"
}
]
]
}
```
Lock issues that have been merged in PRs.
```json
{
"plugins": [["released", { "lockIssues": true }]]
}
```
Whether to comment on PRs made by bots.
```json
{
"plugins": [["released", { "includeBotPrs": true }]]
}
```