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 +4 -4
- data/lib/lita/handlers/github_pinger.rb +2 -9
- 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: 17977cd6e6ceae78be1981713ab820a6adeda790
|
4
|
+
data.tar.gz: 5fc3c2d780804967f01a500d5aa5b045379216f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
26
|
+
robot.send_message(source, content)
|
34
27
|
else
|
35
28
|
puts "Could not find user with name #{username}"
|
36
29
|
end
|
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.2.
|
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."
|