lita-github-pinger 0.2.8 → 0.2.9

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: 87fd5c9f0fcdb16fbdf00c9a1ead0a4db2dcb660
4
- data.tar.gz: 4433e81e4ce2452319ac87c2cea2a26348b0497b
3
+ metadata.gz: 17977cd6e6ceae78be1981713ab820a6adeda790
4
+ data.tar.gz: 5fc3c2d780804967f01a500d5aa5b045379216f1
5
5
  SHA512:
6
- metadata.gz: 1f40fd49b22219dbdd639990dc393565321229017e0246f19d10a2624a6847cee7680c58a2b41ecb30f59c6be70552e2b9eaa6cb1bfc1a20217d2be8c1b79276
7
- data.tar.gz: 7ab096a43118f51805f562def41a2b40584c5895eda147361417eb2d3c558af0aee9365749898a4cc05128545c22e89ea78012c792563058aa870b818327ca5f
6
+ metadata.gz: a9b26e164c8e13249aab0c5cc724dbb393e899ab013231bd7b413c0ea17af718bc8d72688e60160e7c3996c5a27b4bc1fd80e28f625f2c22c57ba704f480eee6
7
+ data.tar.gz: d0e25f1a546553c0c19526de805301e257d555da166e7db7048739adee3316c1553661af2ce982e0450a8c94384d77cafd782cdd0c53c751a1dca7f92d25d033
@@ -10,14 +10,7 @@ module Lita
10
10
 
11
11
  def ghping(request, response)
12
12
  body = MultiJson.load(request.body)
13
- p body
14
-
15
- if body["hook"]["events"].include?("pull_request_review_comment")
16
- send_dm("taylor", "Pull Request Comment: ```#{body}```")
17
- else
18
- send_dm("taylor", "Pull Request Event: ```#{body}```")
19
- end
20
-
13
+ send_dm("taylor", "```#{body}```")
21
14
  response
22
15
  end
23
16
 
@@ -30,7 +23,7 @@ module Lita
30
23
  def send_dm(username, content)
31
24
  if user = Lita::User.fuzzy_find(username)
32
25
  source = Lita::Source.new(user: user)
33
- robot.send_message(source, "New PR comment! #{content}")
26
+ robot.send_message(source, content)
34
27
  else
35
28
  puts "Could not find user with name #{username}"
36
29
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-github-pinger"
3
- spec.version = "0.2.8"
3
+ spec.version = "0.2.9"
4
4
  spec.authors = ["Taylor Lapeyre"]
5
5
  spec.email = ["taylorlapeyre@gmail.com"]
6
6
  spec.description = "A Lita handler that detects github comment notifications and regurgitates a ping to the correct slack username."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-github-pinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Lapeyre