lita-github-pinger 0.5.3 → 0.5.4
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 +7 -2
- data/lita-github-pinger.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5743c1e2910906475e818b3b9912c8bf891f7f06
|
4
|
+
data.tar.gz: 46409742b9e642a2d2290ec13ccb0815075da3a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb57cc2e0d273064e6c785fde9c909163112b94d0f7a1beca801e87f342e56dec08c87267c605e1fd3960807a7f412b412eb848af984b9b9dac6072c5e34dfe3
|
7
|
+
data.tar.gz: 257817987541e681ef9ae3ac97610f9070c654631763c909f8a57f0f1298b37829ce1463e425ae3201b626153ea789c99d921d5ac49b0eeb7f1d1a417aef50c1
|
@@ -6,7 +6,8 @@ module Lita
|
|
6
6
|
# ENGINEER NOTIFICATION PREFERENCES
|
7
7
|
####
|
8
8
|
|
9
|
-
# example entry:
|
9
|
+
# example entry:
|
10
|
+
# "Taylor Lapeyre" => {
|
10
11
|
# :usernames => {
|
11
12
|
# :slack => "taylor",
|
12
13
|
# :github => "taylorlapeyre"
|
@@ -14,6 +15,9 @@ module Lita
|
|
14
15
|
# :github_preferences => {
|
15
16
|
# :frequency => "only_mentions",
|
16
17
|
# :ping_location => "dm"
|
18
|
+
# },
|
19
|
+
# :travis_preferences => {
|
20
|
+
# :frequency => "only_failures"
|
17
21
|
# }
|
18
22
|
#}
|
19
23
|
#
|
@@ -30,6 +34,7 @@ module Lita
|
|
30
34
|
config :engineers, type: Array, required: true
|
31
35
|
|
32
36
|
http.post("/ghping", :ghping)
|
37
|
+
http.post("/travisping", :travisping)
|
33
38
|
|
34
39
|
def ghping(request, response)
|
35
40
|
puts "########## New GH PR Event! ##########"
|
@@ -144,7 +149,7 @@ module Lita
|
|
144
149
|
end
|
145
150
|
|
146
151
|
def find_engineer(slack: nil, github: nil)
|
147
|
-
config.engineers.select do |eng|
|
152
|
+
config.engineers.values.select do |eng|
|
148
153
|
if slack
|
149
154
|
eng[:usernames][:slack] == slack
|
150
155
|
elsif github
|
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.5.
|
3
|
+
spec.version = "0.5.4"
|
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."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-github-pinger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Lapeyre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|