lita-github-pinger 0.3.3 → 0.3.4

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: 8a7a448b9ded5c52da4afde6b652ad97f77202ec
4
- data.tar.gz: 698c53e458e0e7ee446a80e7491794df26245ca5
3
+ metadata.gz: f300744a780f89cb57d7284ae594ad2ffc96b203
4
+ data.tar.gz: 6424e141e9b783f9ce8366f332c0a483177d3db1
5
5
  SHA512:
6
- metadata.gz: 6c84ac9cbd0ec54d4fbe888cd96dbe6d35a09b9aeec94bebae74e5d36a83e36c4cec10171ca7bdad3669ff49c95f8ac0ebfece53c10b21ef5853f8fbc11d40f5
7
- data.tar.gz: a4bb2d8463ee4eaf9a753f651a84a831f248ae676a3e0d007920218c49d000c663f298ee90e4a408c0bbc345094a9f55a482b3de553ca8f8e0a348def25d5d5d
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 = "(to #{pr_owner}) New PR comment from #{commenter}:\n"
28
+ message = "New PR comment from #{commenter}:\n"
29
29
  message += "#{pr_url}\n> #{comment}"
30
30
 
31
- send_dm("taylor", message)
31
+ send_dm(pr_owner, message)
32
32
  end
33
33
 
34
34
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-github-pinger"
3
- spec.version = "0.3.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.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-10 00:00:00.000000000 Z
11
+ date: 2015-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita