danger-additional-logging 0.0.18 → 0.0.20
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e23fd554e095f01ab4cf633523a92ceebbb4b271ffe95054e015e6e61a5e644
|
4
|
+
data.tar.gz: 76061d7a15e32a166c9a3e043d2ec4d9662727556595e4cfca1149cbd78e55db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ff29fbd7f0dc7cda36c3d8cda8ccb0e40304cda52c55dc72727b729d45ef690b8d611670969b3d09ebb2f7337552d7ee7b0b92600346eb6588a73a2e7a02ac
|
7
|
+
data.tar.gz: 74d431a7a9d1a909bb7fc883de9e298908ee2f60245a702728b9a6b1c288df8f0c8a1b930220caaff194538b54e15200d5986bb9e84689731de3b1be1d3a9632
|
@@ -200,7 +200,7 @@ module Danger
|
|
200
200
|
self.defined_in_file = path
|
201
201
|
instance_eval do
|
202
202
|
# rubocop:disable Lint/RescueException
|
203
|
-
|
203
|
+
puts "eval_file(path=#{path}, contents=#{contents})"
|
204
204
|
eval_file(contents, path)
|
205
205
|
rescue Exception => e
|
206
206
|
message = "Invalid `#{path.basename}` file: #{e.message}"
|
@@ -249,6 +249,8 @@ module Danger
|
|
249
249
|
puts "post_results"
|
250
250
|
|
251
251
|
violations = violation_report
|
252
|
+
puts "violations: #{violations}"
|
253
|
+
|
252
254
|
report = {
|
253
255
|
warnings: violations[:warnings].uniq,
|
254
256
|
errors: violations[:errors].uniq,
|
@@ -278,7 +280,8 @@ module Danger
|
|
278
280
|
end
|
279
281
|
|
280
282
|
def run(base_branch, head_branch, dangerfile_path, danger_id, new_comment, remove_previous_comments, report_results = true)
|
281
|
-
puts "run(base_branch=#{base_branch}, head_branch=#{head_branch})"
|
283
|
+
puts "run(base_branch=#{base_branch}, head_branch=#{head_branch}, report_results=#{report_results})"
|
284
|
+
|
282
285
|
# Setup internal state
|
283
286
|
init_plugins
|
284
287
|
env.fill_environment_vars
|
@@ -68,7 +68,7 @@ module Danger
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def update_pull_request!(warnings: [], errors: [], messages: [], markdowns: [], danger_id: "danger", new_comment: false, remove_previous_comments: false)
|
71
|
-
puts "update_pull_request(warnings=#{warnings.size}, messages=#{messages.size}, markdowns=#{markdowns}, new_comment=#{new_comment}, remove_previous_comments=#{remove_previous_comments})"
|
71
|
+
puts "update_pull_request(warnings=#{warnings.size}, messages=#{messages.size}, markdowns=#{markdowns.size}, new_comment=#{new_comment}, remove_previous_comments=#{remove_previous_comments})"
|
72
72
|
delete_old_comments(danger_id: danger_id) if !new_comment || remove_previous_comments
|
73
73
|
|
74
74
|
warnings = update_inline_comments_for_kind!(:warnings, warnings, danger_id: danger_id)
|
data/lib/danger/version.rb
CHANGED