lita-github-pinger 0.1.9 → 0.2.0
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 +4 -4
- data/lib/lita/handlers/github_pinger.rb +6 -2
- 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: e12a3c17dad2515f0c6549c0da7a96e67d5f5858
|
4
|
+
data.tar.gz: af9b9911d64a290efbbb44d45d9760bfdcdf0999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5083843c1e714f5ea7caab59ab5f296161ccd078db67d38389cd48a86db92fa8625c503bab35df226e9a6f3fbab6b60250d00fe86f641bd32e4b8e494f06ed17
|
7
|
+
data.tar.gz: 4138c22443535333454d0762d0490272aad734a4f4554be5acca9238b7916b595af91da5f046098de090fd18bd7c594b3b19131b1ee50a2b8016ecbfc2eee66f
|
@@ -13,8 +13,12 @@ module Lita
|
|
13
13
|
# side effects intentional
|
14
14
|
found = config.engineers.any? do |eng|
|
15
15
|
if eng[:github] == mentioned_username
|
16
|
-
user = Lita::User.
|
17
|
-
|
16
|
+
user = Lita::User.fuzzy_find(engineer[:slack])
|
17
|
+
if user
|
18
|
+
robot.send_message(user, "New PR comment! #{message.message.body}")
|
19
|
+
else
|
20
|
+
message.reply(eng[:slack] + ": " + message.message.body)
|
21
|
+
end
|
18
22
|
end
|
19
23
|
end
|
20
24
|
|
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
|
+
spec.version = "0.2.0"
|
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."
|