From 9a99b20cd183102c69d6a04715731bdf82162c7d Mon Sep 17 00:00:00 2001 From: Adam Lassek Date: Thu, 11 Jun 2015 03:34:37 -0500 Subject: [PATCH] Fix missing Emoji for color-enabled messages For parkr/capistrano-slack-notify#13 --- lib/capistrano/slack_notify.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/capistrano/slack_notify.rb b/lib/capistrano/slack_notify.rb index 77afc51..b056bcd 100644 --- a/lib/capistrano/slack_notify.rb +++ b/lib/capistrano/slack_notify.rb @@ -43,8 +43,9 @@ def regular_payload(announcement) def attachment_payload(color, announcement) { - 'channel' => slack_channel, - 'username' => slack_username, + 'channel' => slack_channel, + 'username' => slack_username, + 'icon_emoji' => slack_emoji, 'attachments' => [{ 'fallback' => announcement, 'text' => announcement,