samson_hipchat 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: e69d89d3040952df4214191f859936474046ad5f
|
4
|
+
data.tar.gz: b467d520ca2b970fea3398120098ac2d82b55013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1431c75a7ca46118b58fd830c1a83dce559a22285bc65d74c7bb511d406fe7d7ea582b8327294bbe4cbeb2f1ce4208fd3c1505d5a76de2e9c09e1668945f7c6
|
7
|
+
data.tar.gz: 0490f31f2c55ed3c8408272371924d40b60e6e9fa54ecb6c76432ce2e70a8cef1578e74f0689f3f85732fa9cab2f1f7d657a95d7ad351ec2fbafabc29e16dce2
|
@@ -56,15 +56,18 @@ class HipchatNotification
|
|
56
56
|
|
57
57
|
def subject
|
58
58
|
if @is_multi_message
|
59
|
-
subject = "#{@user.name} is
|
59
|
+
subject = "#{@user.name} is <a href='#{deploy_url}'>deploying</a> <strong>#{@project.name}</strong> on <strong>#{@stage.name}</strong><br>"
|
60
60
|
|
61
61
|
subject = "#{@user.name} successfully deploy <strong>#{@project.name}</strong> @<a href='#{diff_url}'>#{@deploy.commit}...#{@changeset.try(:previous_commit)}</a> on <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
|
62
62
|
|
63
63
|
subject = "#{@user.name} failed to <a href='#{deploy_url}'>deploy</a> <strong>#{@project.name}</strong> on <strong>#{@stage.name}</strong><br>" if @deploy.job.failed? || @deploy.job.errored?
|
64
64
|
|
65
|
+
subject = "#{@user.name} cancelled <a href='#{deploy_url}'>deploy</a> <strong>#{@project.name}</strong> on <strong>#{@stage.name}</strong><br>" if @deploy.job.cancelled?
|
66
|
+
|
65
67
|
subject
|
66
68
|
else
|
67
|
-
subject = "#{@user.name} successfully deploy <strong>#{@project.name}</strong> @<a href='#{diff_url}'>#{@deploy.commit}...#{@changeset.try(:previous_commit)}</a> on <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
|
69
|
+
#subject = "#{@user.name} successfully deploy <strong>#{@project.name}</strong> @<a href='#{diff_url}'>#{@deploy.commit}...#{@changeset.try(:previous_commit)}</a> on <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
|
70
|
+
subject = "#{@user.name} successfully deploy <strong>#{@project.name}</strong> @ <a href='#{diff_url}'>#{@deploy.commit}</a> on <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
|
68
71
|
end
|
69
72
|
end
|
70
73
|
|
@@ -18,7 +18,9 @@ There are no new commits since last time.
|
|
18
18
|
<strong>Commits:</strong>
|
19
19
|
<ol>
|
20
20
|
<% changeset.commits.each do |commit| %>
|
21
|
-
|
21
|
+
<% if !commit.summary.start_with?("Merge pull request") %>
|
22
|
+
<li><a href='<%= commit.url %>'>(<%= commit.author_name %>)</a>: <%= commit.summary %></li>
|
23
|
+
<% end %>
|
22
24
|
<% end %>
|
23
25
|
</ol>
|
24
26
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samson_hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinh Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hipchat
|