danger-additional-logging 0.0.3 → 0.0.5
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/danger_core/dangerfile.rb +1 -0
- data/lib/danger/scm_source/git_repo.rb +10 -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: '0927584c4b42a15d25eb9044eb3f1dc4f1ee753ec3062145956078cc43ea399b'
|
4
|
+
data.tar.gz: 59b789936b20af473b82972b4bddbb940afff57cc75e44543bfbbc146e83fed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807c14bb3f91fa88028d4e17db0f8ea79842c466d23cd5dbc761cd638b970cf4924210eb7c5bd877ca642d051a15826332cb949aa747895be1e92a6285e21e3f
|
7
|
+
data.tar.gz: c8f6bab5ef63ae8c9aba9c5de208a5dd25a58e1a8aeb847664fa102d7714b51502066c5d8ec8ada5289c48d92f20b194c38dbaf02644e23a300f7383489aa322
|
@@ -270,6 +270,7 @@ module Danger
|
|
270
270
|
end
|
271
271
|
|
272
272
|
def setup_for_running(base_branch, head_branch)
|
273
|
+
puts "setup_for_running(base_branch=#{base_branch}, head_branch=#{head_branch})"
|
273
274
|
env.ensure_danger_branches_are_setup
|
274
275
|
env.scm.diff_for_folder(".".freeze, from: base_branch, to: head_branch, lookup_top_level: true)
|
275
276
|
end
|
@@ -84,10 +84,17 @@ module Danger
|
|
84
84
|
puts "ensure_commitish_exists_on_branch(#{branch}, commitish=#{commitish})!"
|
85
85
|
return if commit_exists?(commitish)
|
86
86
|
|
87
|
+
puts "Is shallow repo:"
|
88
|
+
exect("rev-parse --is-shallow-repository")
|
89
|
+
|
90
|
+
puts "last 5 commits befor starting git_fetch_branch_to_depth:"
|
91
|
+
exec("--no-pager log -n 5")
|
92
|
+
|
87
93
|
depth = 0
|
88
94
|
success =
|
89
95
|
(3..6).any? do |factor|
|
90
96
|
depth += Math.exp(factor).to_i
|
97
|
+
|
91
98
|
puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth})"
|
92
99
|
|
93
100
|
git_fetch_branch_to_depth(branch, depth)
|
@@ -107,6 +114,7 @@ module Danger
|
|
107
114
|
end
|
108
115
|
|
109
116
|
def git_fetch_branch_to_depth(branch, depth)
|
117
|
+
puts "fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}"
|
110
118
|
exec("fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}")
|
111
119
|
end
|
112
120
|
|
@@ -144,6 +152,8 @@ module Danger
|
|
144
152
|
end
|
145
153
|
|
146
154
|
def find_merge_base_with_incremental_fetch(repo, from, to)
|
155
|
+
puts "find_merge_base_with_incremental_fetch"
|
156
|
+
|
147
157
|
from_is_ref = commit_is_ref?(from)
|
148
158
|
to_is_ref = commit_is_ref?(to)
|
149
159
|
|
data/lib/danger/version.rb
CHANGED