lita-github-pinger 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 041e209362ccd29f025944a48842036a871f7510
|
4
|
+
data.tar.gz: 46202970c465eb7b519e3235bf399f118f4e7024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a50e8364761a1b3fd47b605eca318e424a6aa04531e594799de28f3d2c8a8d47fce28ed8805133584d4e0c59d6f09025e1ded4ae1b0a2e04cd0cf14dc1e52b3a
|
7
|
+
data.tar.gz: 21cc6e5dd52e96b7e55534325cb7c8f8dd19423292d03d5db008afc8eebac1cdb46fe60b1d9ae40e5d433c03a8bfd17a6b0c066a43e2afd2573e6cfec1c2f5e3
|
@@ -10,6 +10,7 @@ module Lita
|
|
10
10
|
|
11
11
|
def ghping(request, response)
|
12
12
|
body = MultiJson.load(request.body)
|
13
|
+
p body
|
13
14
|
|
14
15
|
if body["events"].include?("pull_request_review_comment")
|
15
16
|
send_dm("taylor", "Pull Request Comment: ```#{body}```")
|
@@ -27,7 +28,7 @@ module Lita
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def send_dm(username, content)
|
30
|
-
if user = Lita::User.fuzzy_find(
|
31
|
+
if user = Lita::User.fuzzy_find(username)
|
31
32
|
source = Lita::Source.new(user: user)
|
32
33
|
robot.send_message(source, "New PR comment! #{message.message.body}")
|
33
34
|
else
|
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.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."
|
@@ -46,4 +46,9 @@ describe Lita::Handlers::GithubPinger, lita_handler: true do
|
|
46
46
|
send_message("comments up @taylorlapeyre)")
|
47
47
|
expect(replies.count).to eq 0
|
48
48
|
end
|
49
|
+
|
50
|
+
it 'will do the thing' do
|
51
|
+
response = http.post("/ghping", '{"hello": "world", "events": ["pull_request_review_comment"]}')
|
52
|
+
expect(response.body).to_not be_nil
|
53
|
+
end
|
49
54
|
end
|