octobot-slack_agent 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/octobot/slack_agent/deploy_notifier.rb +7 -2
- data/lib/octobot/slack_agent/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933bb101dedb946a3d933487e4e1511dbbf6dcb0
|
4
|
+
data.tar.gz: 547fb853c7e7decfbf2d49c072802c6c50827a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1176fb88fbef0028291d9557d9faff2a6702e5d62f257a5390c4991d04db4aa74656608ea54f3c67d5a1705ae66483b36d8cbb085d26b5f8a3d49e2697a3a0d9
|
7
|
+
data.tar.gz: f3e295562290b65ae50adf1e3cbb910d18b55e787391f004429d499b3a361fa6499fe1c545eb3b9f6e03395b12f24a43a21dcb7c8f5590087f34520d7cec8f35
|
@@ -11,7 +11,7 @@ module Octobot
|
|
11
11
|
super webhook_url, username, icon_emoji
|
12
12
|
end
|
13
13
|
|
14
|
-
def deployed(app, environment, git_hash, commit_msg)
|
14
|
+
def deployed(app, environment, git_hash, commit_msg, author)
|
15
15
|
title, message = process_message commit_msg
|
16
16
|
|
17
17
|
send_attachments [
|
@@ -19,7 +19,12 @@ module Octobot
|
|
19
19
|
pretext: "#{app} #{environment} has been updated to #{git_hash}",
|
20
20
|
title: title,
|
21
21
|
title_link: gitblit_link(app, git_hash),
|
22
|
-
text: message
|
22
|
+
text: message,
|
23
|
+
fields: [{
|
24
|
+
title: "Author",
|
25
|
+
value: author,
|
26
|
+
short: false
|
27
|
+
}]
|
23
28
|
}, 'good')
|
24
29
|
]
|
25
30
|
end
|