lita-github-pinger 0.3.3 → 0.3.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 +3 -3
- 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: f300744a780f89cb57d7284ae594ad2ffc96b203
|
4
|
+
data.tar.gz: 6424e141e9b783f9ce8366f332c0a483177d3db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e624b3029bfc2ebf6dda6114c304e0a5ffea35f6027c64bc25c11dd6692e6bc34c54a60e617e4d045e16f0aee69ecb64e80f14882703c62230e73f1ef0d3e6c
|
7
|
+
data.tar.gz: 9206f8287f2739520b4ef1fa4e9981e3564de1a93eef35ab9bcac2d6d06e51bf7368625d47fcbe62de2ae316ce7634bb17564e4f7f797196e8c06110f018cfc4
|
@@ -15,7 +15,7 @@ module Lita
|
|
15
15
|
pr_url = body["pull_request"]["html_url"]
|
16
16
|
pr_owner = body["pull_request"]["user"]["login"]
|
17
17
|
commenter = body["comment"]["user"]["login"]
|
18
|
-
comment = body["comment"]["body"]
|
18
|
+
comment = body["comment"]["body"].split("\n").join("\n >")
|
19
19
|
|
20
20
|
pr_owner = config.engineers.select do |eng|
|
21
21
|
eng[:github] == pr_owner
|
@@ -25,10 +25,10 @@ module Lita
|
|
25
25
|
eng[:github] == commenter
|
26
26
|
end.first[:slack]
|
27
27
|
|
28
|
-
message = "
|
28
|
+
message = "New PR comment from #{commenter}:\n"
|
29
29
|
message += "#{pr_url}\n> #{comment}"
|
30
30
|
|
31
|
-
send_dm(
|
31
|
+
send_dm(pr_owner, message)
|
32
32
|
end
|
33
33
|
|
34
34
|
|
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.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.3.
|
4
|
+
version: 0.3.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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|