lita-github-pinger 0.5.8 → 0.5.9
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 +13 -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: 6f8065083222641e5df4268b79de9f171cf153e0
|
|
4
|
+
data.tar.gz: 682ca1ffe9e6966d00c9b15665ec346080809afa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3a5981143fd8084f7e60d7b4c02e93ebbe0f0b32ee7f955390136683c17c937aa3790016c6082e2bf8588fb18eb556b8061242245f5848d19a5e4ae6b15327d
|
|
7
|
+
data.tar.gz: f6a735b679ee233c78722cc0320a43f2e4f08d575f5a3b6df19f96463f072fdbc1bf169d2620e347a5cd148311e752e8e7c4be13c43b94e97ace1a19cf602b2a
|
|
@@ -21,16 +21,23 @@ module Lita
|
|
|
21
21
|
# }
|
|
22
22
|
#}
|
|
23
23
|
#
|
|
24
|
-
# :ping_location can be...
|
|
24
|
+
# :github_preferences[:ping_location] can be...
|
|
25
25
|
# - "dm"
|
|
26
26
|
# - "eng-pr" (pings you in #eng-pr)
|
|
27
27
|
# default: "dm"
|
|
28
28
|
#
|
|
29
|
-
# :frequency can be
|
|
29
|
+
# :github_preferences[:frequency] can be
|
|
30
30
|
# - "all_discussion" (pings you about any comments on your PRs and @mentions)
|
|
31
31
|
# - "only_mentions" (will only ping you when you are explicitly @mentioned)
|
|
32
32
|
# - "off"
|
|
33
33
|
# default: "all_discussion"
|
|
34
|
+
#
|
|
35
|
+
# :travis_preferences[:frequency] can be
|
|
36
|
+
# - "only_passes"
|
|
37
|
+
# - "only_failures"
|
|
38
|
+
# - "everything"
|
|
39
|
+
# - "off"
|
|
40
|
+
# default: "all_discussion"
|
|
34
41
|
config :engineers, type: Hash, required: true
|
|
35
42
|
|
|
36
43
|
http.post("/ghping", :ghping)
|
|
@@ -66,6 +73,8 @@ module Lita
|
|
|
66
73
|
|
|
67
74
|
return if ["off", "only_passes"].include?(commiter[:travis_preferences][:frequency])
|
|
68
75
|
send_dm(commiter[:usernames][:slack], message)
|
|
76
|
+
|
|
77
|
+
response
|
|
69
78
|
end
|
|
70
79
|
|
|
71
80
|
def act_on_build_success(body, response)
|
|
@@ -78,6 +87,8 @@ module Lita
|
|
|
78
87
|
|
|
79
88
|
return if ["off", "only_failures"].include?(commiter[:travis_preferences][:frequency])
|
|
80
89
|
send_dm(commiter[:usernames][:slack], message)
|
|
90
|
+
|
|
91
|
+
response
|
|
81
92
|
end
|
|
82
93
|
|
|
83
94
|
def act_on_assign(body, response)
|
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.9"
|
|
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."
|