capistrano-releases-notification 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 860533c402ab7319af7cbc33d00e0e109d8f65f6
|
4
|
+
data.tar.gz: 3382dfa9d451a1835cd178c2be3abd494717e890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289553be9c57a3cad5ffd1ec09be6e9019bd8c524eb6919c788763f229ef63b03f4f0365489807b82426b0b7cbbf53cbaeeb3332b12b1eb7ee2d658cb26c21b5
|
7
|
+
data.tar.gz: 6b4c14a2824c648df12b63252854e5171327348f920f34183a285e928aad8c94faa22899719a1b983ed4dd9ee6897316e94c9b2ce711401b3ee97a96e09e4011
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@ namespace :release do
|
|
2
2
|
|
3
3
|
set :release_notify_channel, ['#general']
|
4
4
|
set :release_notify_mention, []
|
5
|
+
set :release_notify_title, fetch(:application)
|
5
6
|
|
6
7
|
set :release_notify_message, -> {
|
7
8
|
"It has released. #{fetch(:release_notify_mention).join(' ')}"
|
@@ -21,7 +22,7 @@ namespace :release do
|
|
21
22
|
|
22
23
|
attachments = [{
|
23
24
|
color: 'good',
|
24
|
-
title: fetch(:
|
25
|
+
title: fetch(:release_notify_title),
|
25
26
|
text: fetch(:release_notify_attachment),
|
26
27
|
}]
|
27
28
|
body = JSON.generate(fetch(:slack_default_body).merge(text: fetch(:release_notify_message), attachments: attachments))
|