danger-additional-logging 0.0.13 → 0.0.15
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: c34b31ca7aba2cf93ff0f0363e6597369bd93b737925f7a9910e58d009b40ca3
|
4
|
+
data.tar.gz: 0e783bcb7662b8232ad5454ee97d8a35bcc851489c774c7b1b3972dc31595667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea90b5383dc8a60e1d27bbb8a2791bf0ead9999e2774c09b9deb50b945db32d89dc055481334d5f98cf4b2faaa84db449b4cdd8452431bd4c981985f90560a8
|
7
|
+
data.tar.gz: 5b9c4e0747619afa32bc4b63b27c3961c28a24c3bd0b4075b93349f19f096360291e1b78e9bfe21f824c50e5687a3932321ce1662137780a4fc83c4c46e9dd9a
|
@@ -276,6 +276,7 @@ module Danger
|
|
276
276
|
end
|
277
277
|
|
278
278
|
def run(base_branch, head_branch, dangerfile_path, danger_id, new_comment, remove_previous_comments, report_results = true)
|
279
|
+
puts "run(base_branch=#{base_branch}, head_branch=#{head_branch})"
|
279
280
|
# Setup internal state
|
280
281
|
init_plugins
|
281
282
|
env.fill_environment_vars
|
@@ -10,7 +10,6 @@ module Danger
|
|
10
10
|
self.folder = folder
|
11
11
|
git_top_level = find_git_top_level_if_needed!(folder, lookup_top_level)
|
12
12
|
|
13
|
-
puts "diff_for_folder(folder=#{folder}, from=#{from}, to=#{to}, lookup=#{lookup_top_level})"
|
14
13
|
repo = Git.open(git_top_level)
|
15
14
|
|
16
15
|
ensure_commitish_exists!(from)
|
@@ -77,7 +76,6 @@ module Danger
|
|
77
76
|
end
|
78
77
|
|
79
78
|
def ensure_commitish_exists!(commitish)
|
80
|
-
puts "ensure_commitish_exists! #{commitish}"
|
81
79
|
return ensure_commitish_exists_on_branch!(commitish, commitish) if commit_is_ref?(commitish)
|
82
80
|
return if commit_exists?(commitish)
|
83
81
|
|
@@ -98,9 +96,7 @@ module Danger
|
|
98
96
|
puts "The commit #{commitish} DOES NOT exist in #{branch}"
|
99
97
|
end
|
100
98
|
|
101
|
-
|
102
|
-
exec("branch -v", true)
|
103
|
-
exec("--no-pager log -n 2", true)
|
99
|
+
# git_in_depth_fetch
|
104
100
|
|
105
101
|
depth = 0
|
106
102
|
success =
|
@@ -183,8 +179,8 @@ module Danger
|
|
183
179
|
|
184
180
|
def possible_merge_base(repo, from, to)
|
185
181
|
puts "possible_merge_base(from=#{from}, to=#{to})"
|
186
|
-
exec("
|
187
|
-
exec("
|
182
|
+
exec("--no-pager log #{from} -n 50", true)
|
183
|
+
exec("--no-pager log #{to} -n 50", true)
|
188
184
|
|
189
185
|
[repo.merge_base(from, to)].find { |base| commit_exists?(base) }
|
190
186
|
end
|
data/lib/danger/version.rb
CHANGED