augustash/pantheon-slack-notice

Provides a slack notice upon a Pantheon deploy.

1.0.5 2025-06-13 20:24 UTC

This package is auto-updated.

Last update: 2025-06-13 20:24:57 UTC


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.