augustash / pantheon-slack-notice
Provides a slack notice upon a Pantheon deploy.
Installs: 185
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/augustash/pantheon-slack-notice
Requires
- drupal/core: ^10 || ^11
- oomphinc/composer-installers-extender: ^2
README
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.
Module Setup:
Single Line:
composer config scripts.slack-notice "Augustash\\PantheonSlackNotice::postPackageInstall" && composer require augustash/pantheon-slack-notice && composer slack-notice
Manual:
Add the following to root composer.json:
Root level:
"scripts": {
"slack-notice": "Augustash\\PantheonSlackNotice::postPackageInstall"
}
Run:
composer require augustash/pantheon-slack-notice && composer slack-notice
Note:
- 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.