danger-additional-logging 0.0.17 → 0.0.18
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/danger/request_sources/bitbucket_cloud.rb +9 -0
- data/lib/danger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f9c54a983cd3714ca10c6ea59e97454364f1e704bd6d1e31ce00c3c31298123
|
4
|
+
data.tar.gz: 881b37060b499d2aeb2b2eb97c9f420c6657a7f08f458bd997f067ab413c45e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b607b1aaa6e35f2fefbc2ded4a003bc632bf2f393524abfc1060af00e4fa1292ce419283f095e1dee4922ca30c64af91a42e07d72007d54a777f86b140851e13
|
7
|
+
data.tar.gz: 95ca2edc2020dbc09bbdfb04de7efefa09bdd7feaba78924208eba99a4455754a1dab9b39e0a12c224d5417168ce01bde58da1e49037426cd7d9316af8a97235
|
@@ -68,6 +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
72
|
delete_old_comments(danger_id: danger_id) if !new_comment || remove_previous_comments
|
72
73
|
|
73
74
|
warnings = update_inline_comments_for_kind!(:warnings, warnings, danger_id: danger_id)
|
@@ -76,6 +77,9 @@ module Danger
|
|
76
77
|
markdowns = update_inline_comments_for_kind!(:markdowns, markdowns, danger_id: danger_id)
|
77
78
|
|
78
79
|
has_comments = (warnings.count.positive? || errors.count.positive? || messages.count.positive? || markdowns.count.positive?)
|
80
|
+
|
81
|
+
puts "has_comments=#{has_comments}"
|
82
|
+
|
79
83
|
if has_comments
|
80
84
|
comment = generate_description(warnings: warnings, errors: errors, template: "bitbucket_server")
|
81
85
|
comment += "\n\n"
|
@@ -86,6 +90,8 @@ module Danger
|
|
86
90
|
previous_violations: {},
|
87
91
|
danger_id: danger_id,
|
88
92
|
template: "bitbucket_server")
|
93
|
+
|
94
|
+
puts "comment=#{comment}"
|
89
95
|
@api.post_comment(comment)
|
90
96
|
end
|
91
97
|
end
|
@@ -94,6 +100,9 @@ module Danger
|
|
94
100
|
danger_id: "danger",
|
95
101
|
new_comment: false,
|
96
102
|
remove_previous_comments: false)
|
103
|
+
|
104
|
+
puts "update_pr_by_line!(new_comment=#{new_comment}, remove_previous_comments=#{remove_previous_comments})"
|
105
|
+
|
97
106
|
if !new_comment || remove_previous_comments
|
98
107
|
puts "delete_old_comments(danger_id=#{danger_id})"
|
99
108
|
delete_old_comments(danger_id: danger_id)
|
data/lib/danger/version.rb
CHANGED