gh-events 0.6.1 → 0.6.2

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
  SHA256:
3
- metadata.gz: ff1df8096fb70c1e738f6f32691349a2473a2077631e604237659c8389c49867
4
- data.tar.gz: f70db76e498852ef2a291ce518185993f0ac8bb88aa152ff55e0abb1ff3728ed
3
+ metadata.gz: 7f9a4fc61ec5714b1d49249d449496180f7a7e378b327a9c2e8d7e467c06b9a5
4
+ data.tar.gz: 83d0c56649117b8a3f091215223467f327e326b28e81874e9dce4cb5e2ac61b7
5
5
  SHA512:
6
- metadata.gz: 7af8e21e709b7b428d4504428fed99b53c5fc39eb6f2606d0b611e17c8fc7fce16d2ad2acf45a6a3697f1cbd76b996c2f4b19cc8cf114c619a002310cd122414
7
- data.tar.gz: 4192ec6791574c77f8baaa27b95f4449822741520252b260670ec2390cde5e293deb7db01be5b266582e1d1a385eb85eb1e1751ec437e995fc9bd295d0a22ee6
6
+ metadata.gz: 1e688bda0e36e9dee4b97b3a166bf2b1e2a574767a19099d666ec5ed1fa07c7d6e0193226b92b4d67d652f3228f990308dc700cfbb37f80bfce1abc7821e2189
7
+ data.tar.gz: dd7072f3c14de36c0f63c33430f129f790db2c0908f7ce900c84ee0c049427b1f442bdbf77360058d5670cf909141bbaa100bcf3204712c2dc220af602854bc8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gh-events (0.6.1)
4
+ gh-events (0.6.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 context]
12
+ ASPECTS = %i[type action state]
13
13
 
14
14
  def translate(payload)
15
15
  event = JSON.parse(payload, object_class: OpenStruct)
@@ -1,5 +1,5 @@
1
1
  module GH
2
2
  module Events
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
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 %>>: <%= comment.body %>
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh-events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Hofmann