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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22cb0d20d4ce7fc92150fac6fb17b6db258b5ebe
4
- data.tar.gz: fb7080eb8f07d9a099ebdbcdecfa5faf75dbd364
3
+ metadata.gz: 933bb101dedb946a3d933487e4e1511dbbf6dcb0
4
+ data.tar.gz: 547fb853c7e7decfbf2d49c072802c6c50827a77
5
5
  SHA512:
6
- metadata.gz: 3c9d970866132da6b68e69b323af196b90a049e8f7f629b47c587312c53731907a27c7bfcb61c6fa9275853d199d76123149f4c2e2e75755bd9ca27466a5ce7f
7
- data.tar.gz: fda06e7c5cf9d1153a65cece6425129a09ee491c481e19e4ee8d0ab23527e6a2475bb237e861692f7d35c32c63b300c7d988e87828c7e8c5da6a5c7eb09f61d6
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
@@ -1,5 +1,5 @@
1
1
  module Octobot
2
2
  module SlackAgent
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octobot-slack_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - defektive