danger-additional-logging 0.0.3 → 0.0.4
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/scm_source/git_repo.rb +4 -1
- 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: b958caa6c90f22e86207879c0d532f6a84ad3a04711bf7cecb470c8244ab110a
|
|
4
|
+
data.tar.gz: f01edb5637a1256d8592cad779ccc6331958c4bc864197ef6eddc25dcaede358
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5984e2775f7bf506f91cc0f4fb941129a2badbf8eb4528e5fe36efd2fa89e4e367cb6d3f5c76004940b338455ddbcd7a702d8b83d38528ec092e48aba43b4ad
|
|
7
|
+
data.tar.gz: d56693b56175aa64f2cd828d3090b9475d5f23fa1e7b88ed4d494cf5a34ce8f4ef15422277211f5b0f786d3584cc1f705ca1ebcb65adfeb792c55fba3088c30a
|
|
@@ -88,7 +88,9 @@ module Danger
|
|
|
88
88
|
success =
|
|
89
89
|
(3..6).any? do |factor|
|
|
90
90
|
depth += Math.exp(factor).to_i
|
|
91
|
-
|
|
91
|
+
|
|
92
|
+
puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth}), last 5 commits:"
|
|
93
|
+
exec("git --no-pager log -n 5")
|
|
92
94
|
|
|
93
95
|
git_fetch_branch_to_depth(branch, depth)
|
|
94
96
|
commit_exists?(commitish)
|
|
@@ -107,6 +109,7 @@ module Danger
|
|
|
107
109
|
end
|
|
108
110
|
|
|
109
111
|
def git_fetch_branch_to_depth(branch, depth)
|
|
112
|
+
puts "fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}"
|
|
110
113
|
exec("fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}")
|
|
111
114
|
end
|
|
112
115
|
|
data/lib/danger/version.rb
CHANGED