This module provides a way to setup a Slack notification through a webhook into a set channel upon a successful deploy to the LIVE Pantheon environment.
composer config scripts.slack-notice "Augustash\\PantheonSlackNotice::postPackageInstall" && composer require augustash/pantheon-slack-notice && composer slack-noticeAdd the following to root composer.json:
Root level:
"scripts": {
"slack-notice": "Augustash\\PantheonSlackNotice::postPackageInstall"
}
Run:
composer require augustash/pantheon-slack-notice && composer slack-notice
- You will need Pantheon's CLI tool Terminus as well as the Terminus Secrets Plugin to generate the secrets file automatically.
- You will be asked to provide your Pantheon site name and env.
- You will need to know your slack webhook URL and slack channel ID to pass to the prompt to generate a secrets file.