semantic-release plugin to get release notifications on mattermost via webhooks
Add the plugin to your npm-project
npm install semantic-release-mattermost
yarn add semantic-release-mattermost
Add the plugin to your semantic-release config:
{
"plugins": [
"@semantic-release/release-notes-generator",
[
"semantic-release-mattermost",
{
"webhook": "https://mattermost.example.com",
"username": "semantic-release",
"name": "project name",
"channel": "channel-name"
}
]
]
}
If the MATTERMOST_WEBHOOK
environment variable is defined in your environment,
it will be used instead of the webhook
provided in the config.
If the CI_PROJECT_NAME
environment variable is defined in your environment,
it will be used instead of the name
provided in the config.
channel
and username
can be optionally used to override webhook details.