From a9664a7b2fba5305ccceb505184f9b59cb0142ae Mon Sep 17 00:00:00 2001 From: Jordan Ryan Date: Thu, 24 Nov 2016 11:30:21 -0800 Subject: [PATCH] Example with slack_channel and slack_username in secrets.json --- slack_notification/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slack_notification/README.md b/slack_notification/README.md index cdc224e..d438900 100644 --- a/slack_notification/README.md +++ b/slack_notification/README.md @@ -8,7 +8,9 @@ This script shows how easy it is to integrate Slack notifications from your Pant 2. Copy the secret Webhook URL into a file called `secrets.json` and store it in the [private files](https://pantheon.io/docs/articles/sites/private-files/) directory of every environment where you want to trigger Slack notifications. ```shell - $> echo '{"slack_url": "https://hooks.slack.com/services/MY/SECRET/URL"}' > secrets.json + $> echo '{"slack_url": "https://hooks.slack.com/services/MY/SECRET/URL","slack_channel": "#channel"}' > secrets.json + # To post as a specific user you will want to use: + $> echo '{"slack_url": "https://hooks.slack.com/services/MY/SECRET/URL","slack_channel": "#channel","slack_username":"myusername"}' > secrets.json # Note, you'll need to copy the secrets into each environment where you want to trigger Slack notifications. $> `terminus site connection-info --env=dev --site=your-site --field=sftp_command` Connected to appserver.dev.d1ef01f8-364c-4b91-a8e4-f2a46f14237e.drush.in.