lita-github-pinger 0.3.5 → 0.3.6

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: 20d6918685792554a1e462b3c7f6ebfd15f0f984
4
- data.tar.gz: 7c2a61d4cd52fbf6b45682effd249a14cf01b0f0
3
+ metadata.gz: edb3e251d49bce421fdbb52dac861ee107d11f1b
4
+ data.tar.gz: f51cbd8c58841d51a56c82c95b5d2c96743de0fc
5
5
  SHA512:
6
- metadata.gz: 799f6aa5d398df1e85f2190947442d2c8091ab96bbdeecd67d14329326f376bed6a299aea1712d991d386baf50ceeff236f275e846e54b4213c419dcfe84b580
7
- data.tar.gz: 4eea3cc8c46ac6926982fe62e945ea98da2f5e4e4d558fa607cba3bf06b6fdc2013e0074af9aad9a4aa25bb9e25827a9659afaacfa2187827e7652e6b5e40f48
6
+ metadata.gz: ec3b49c4cc4340f7100230aa5b7d9ce5fb176cdd7f4d54d94e60be11f5010b6e1555b7a8613d9a7c70df67946fa6268f929a11c570aa7459577c5d7e4e8812de
7
+ data.tar.gz: 8e40199e6bb6ea34c61019b22cae6cbb051c62137699d453d20f71544b0f7fcc871b2651ade1f870bd7b8d012c70423011d769508442348b36fd5e85baf2a6f9
@@ -13,9 +13,10 @@ module Lita
13
13
 
14
14
  if body["comment"]
15
15
 
16
- puts "GOT A PR COMMENT"
17
- pr_url = body["pull_request"]["html_url"]
18
- pr_owner = body["pull_request"]["user"]["login"]
16
+ thing = body["pull_request"] || body["issue"]
17
+
18
+ pr_url = thing["html_url"]
19
+ pr_owner = thing["user"]["login"]
19
20
  commenter = body["comment"]["user"]["login"]
20
21
  comment = body["comment"]["body"].split("\n").join("\n >")
21
22
 
@@ -30,9 +31,10 @@ module Lita
30
31
  message = "New PR comment from #{commenter}:\n"
31
32
  message += "#{pr_url}\n> #{comment}"
32
33
 
33
- puts "Sending to #{pr_owner}"
34
+ puts "Got a comment on something, sending message to #{pr_owner}"
34
35
 
35
36
  send_dm(pr_owner, message)
37
+
36
38
  end
37
39
 
38
40
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-github-pinger"
3
- spec.version = "0.3.5"
3
+ spec.version = "0.3.6"
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Lapeyre