Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with slack_channel and slack_username in secrets.json #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion slack_notification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down