lita-github-pinger 0.3.4 → 0.3.5
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 +4 -0
- 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: 20d6918685792554a1e462b3c7f6ebfd15f0f984
|
4
|
+
data.tar.gz: 7c2a61d4cd52fbf6b45682effd249a14cf01b0f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 799f6aa5d398df1e85f2190947442d2c8091ab96bbdeecd67d14329326f376bed6a299aea1712d991d386baf50ceeff236f275e846e54b4213c419dcfe84b580
|
7
|
+
data.tar.gz: 4eea3cc8c46ac6926982fe62e945ea98da2f5e4e4d558fa607cba3bf06b6fdc2013e0074af9aad9a4aa25bb9e25827a9659afaacfa2187827e7652e6b5e40f48
|
@@ -12,6 +12,8 @@ module Lita
|
|
12
12
|
body = MultiJson.load(request.body)
|
13
13
|
|
14
14
|
if body["comment"]
|
15
|
+
|
16
|
+
puts "GOT A PR COMMENT"
|
15
17
|
pr_url = body["pull_request"]["html_url"]
|
16
18
|
pr_owner = body["pull_request"]["user"]["login"]
|
17
19
|
commenter = body["comment"]["user"]["login"]
|
@@ -28,6 +30,8 @@ module Lita
|
|
28
30
|
message = "New PR comment from #{commenter}:\n"
|
29
31
|
message += "#{pr_url}\n> #{comment}"
|
30
32
|
|
33
|
+
puts "Sending to #{pr_owner}"
|
34
|
+
|
31
35
|
send_dm(pr_owner, message)
|
32
36
|
end
|
33
37
|
|
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.5"
|
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."
|