gh-events 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gh/events/slack.rb +1 -1
- data/lib/gh/events/version.rb +1 -1
- data/res/slack.yml +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f9a4fc61ec5714b1d49249d449496180f7a7e378b327a9c2e8d7e467c06b9a5
|
4
|
+
data.tar.gz: 83d0c56649117b8a3f091215223467f327e326b28e81874e9dce4cb5e2ac61b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e688bda0e36e9dee4b97b3a166bf2b1e2a574767a19099d666ec5ed1fa07c7d6e0193226b92b4d67d652f3228f990308dc700cfbb37f80bfce1abc7821e2189
|
7
|
+
data.tar.gz: dd7072f3c14de36c0f63c33430f129f790db2c0908f7ce900c84ee0c049427b1f442bdbf77360058d5670cf909141bbaa100bcf3204712c2dc220af602854bc8
|
data/Gemfile.lock
CHANGED
data/lib/gh/events/slack.rb
CHANGED
@@ -9,7 +9,7 @@ module GH::Events::Slack
|
|
9
9
|
|
10
10
|
# this is a carefully curated list of fields in gh events that might
|
11
11
|
# be helpful when filtering events
|
12
|
-
ASPECTS = %i[type action state
|
12
|
+
ASPECTS = %i[type action state]
|
13
13
|
|
14
14
|
def translate(payload)
|
15
15
|
event = JSON.parse(payload, object_class: OpenStruct)
|
data/lib/gh/events/version.rb
CHANGED
data/res/slack.yml
CHANGED
@@ -57,7 +57,7 @@ issue_comment:
|
|
57
57
|
:left_speech_bubble:
|
58
58
|
<<%= sender.html_url %>|<%= sender.login %>>
|
59
59
|
commented
|
60
|
-
on <<%= comment.html_url %>|<%= issue.title
|
60
|
+
on <<%= comment.html_url %>|<%= issue.title %>>
|
61
61
|
attachments:
|
62
62
|
- fallback: <%= comment.body %>
|
63
63
|
color: '#36a64f'
|
@@ -150,22 +150,22 @@ star:
|
|
150
150
|
:star: <%= repository.stargazers_count %>
|
151
151
|
|
152
152
|
# Ignore other status udpates than CircleCI failures for the moment
|
153
|
-
status:
|
153
|
+
status: false
|
154
|
+
|
155
|
+
status.failure:
|
154
156
|
text: >-
|
155
|
-
<% if context.match(/circleci/) and state == 'failure' %>
|
156
|
-
[`<%= stype %>`]
|
157
157
|
<<%= target_url %> | CircleCI build >
|
158
158
|
fails for commit
|
159
159
|
<<%= commit.html_url %> | <%= commit.commit.message %>>
|
160
160
|
from
|
161
161
|
<<%= sender.html_url %>|<%= sender.login %>>
|
162
|
-
<% end %>
|
163
162
|
|
164
163
|
fork:
|
165
164
|
text: >-
|
166
165
|
:fork_and_knife:
|
167
166
|
<<%= sender.html_url %>|<%= sender.login %>>
|
168
167
|
forked <<%= repository.html_url %>|<%= repository.full_name %>>
|
168
|
+
:fork_and_knife: <%= repository.forks_count %>
|
169
169
|
|
170
170
|
deployment:
|
171
171
|
text: An event of type `deployment` occurred.
|