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 +4 -4
- data/lib/lita/handlers/github_pinger.rb +6 -4
- data/lita-github-pinger.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edb3e251d49bce421fdbb52dac861ee107d11f1b
|
4
|
+
data.tar.gz: f51cbd8c58841d51a56c82c95b5d2c96743de0fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
17
|
-
|
18
|
-
|
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 "
|
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
|
|
data/lita-github-pinger.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-github-pinger"
|
3
|
-
spec.version = "0.3.
|
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."
|