Skip to content

Update for URL-based webhooks, and message formatting#9

Open
brendonrapp wants to merge 2 commits intofsalum:masterfrom
brendonrapp:master
Open

Update for URL-based webhooks, and message formatting#9
brendonrapp wants to merge 2 commits intofsalum:masterfrom
brendonrapp:master

Conversation

@brendonrapp
Copy link

Slack has updated their Incoming Webhooks integration to use a single URL in place of the token-argument previously used.

This PR replaces slack_token with slack_webhook. It also eliminates slack_url, as the team URL no longer factors into incoming webhooks.

Additionally, this PR makes use of Slack's Attachments API to color the bar next to the message as red or green, based on the success or failure of the Puppet run. It also uses the JSON standard library to convert a Ruby hash into JSON in lieu of the backslash-heavy string literal.

@coolacid
Copy link

coolacid commented Aug 2, 2015

Ping for new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants