Post messages to Webex Teams after a release is made.
To post messages to Webex Teams you need the following secrets set in your environment:
WEBEX_TOKEN- A Webex Bot token or Personal Access TokenWEBEX_ROOM_ID- The ID of the Webex Teams room/space where messages should be posted
This plugin is not included with the auto CLI installed via NPM. To install:
npm i --save-dev auto-webex-plugin
# or
yarn add -D auto-webex-pluginConfigure the plugin in your auto configuration:
{
"plugins": [
[
"webex",
{
/* options */
}
]
]
}You can configure the message posted to Webex Teams. The message option should use the following special tokens to create a message.
%release- The version bump (major, minor, patch)%package- The name of the package%notes- Your release notes%link- A link to your the release on GitHub%version- The latest version number
Default:
A new %release version of %package was released!
%notes
%linkExample configuration:
{
"plugins": [
["webex", { "message": "v%version of %package was released!
%link" }]
]
}By default the webex plugin will only post if the version difference between the latest and the last release is greater than a minor.
{
"plugins": [["webex", { "threshold": "major" }]]
}