|
|
@@ -14,7 +14,7 @@ module Agents
|
14
|
14
|
#{'## Include `slack-notifier` in your Gemfile to use this Agent!' if dependencies_missing?}
|
15
|
15
|
|
16
|
16
|
To get started, you will first need to configure an incoming webhook.
|
17
|
|
-
|
|
17
|
+
|
18
|
18
|
- Go to `https://my.slack.com/services/new/incoming-webhook`, choose a default channel and add the integration.
|
19
|
19
|
|
20
|
20
|
Your webhook URL will look like: `https://hooks.slack.com/services/some/random/characters`
|
|
|
@@ -74,7 +74,7 @@ module Agents
|
74
|
74
|
incoming_events.each do |event|
|
75
|
75
|
opts = interpolated(event)
|
76
|
76
|
slack_opts = filter_options(opts)
|
77
|
|
- if opts[:icon].to_s != ''
|
|
77
|
+ if opts[:icon].present?
|
78
|
78
|
if /^:/.match(opts[:icon])
|
79
|
79
|
slack_opts[:icon_emoji] = opts[:icon]
|
80
|
80
|
else
|