danger-additional-logging 0.0.4 → 0.0.6
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 +19 -3
- data/lib/danger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 390571d729973fa4be224c9de65d609ec7aaffd0a1c162bdcc5e70c4ebc07923
|
4
|
+
data.tar.gz: 613cf532e130b40d62bd5732479d4695fc0fa6a337c89ab324b83357a4b716e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99dc62a3a802646511a3c519a8ed8ba9165641ff0011d4dbb0ee85dfcb760336e855c9932058718314463dc5ca2500663581fec90fb71bf55f4b1dee02481cf9
|
7
|
+
data.tar.gz: 0da78c3ca6ee7ff9436c667165530ce1491b6d005823a8fcc65da4a5f20240a8e92f90f2a9e8b88e2b0454b3fa1d00736bec0274c61baf5d3df5b7b558eddd25
|
@@ -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
|
@@ -82,15 +82,29 @@ module Danger
|
|
82
82
|
|
83
83
|
def ensure_commitish_exists_on_branch!(branch, commitish)
|
84
84
|
puts "ensure_commitish_exists_on_branch(#{branch}, commitish=#{commitish})!"
|
85
|
-
|
85
|
+
|
86
|
+
exists = commit_exists?(commitish)
|
87
|
+
# return if commit_exists?(commitish)
|
88
|
+
|
89
|
+
if (exists)
|
90
|
+
puts "The commit #{commitish} exists in #{branch}"
|
91
|
+
return
|
92
|
+
else
|
93
|
+
puts "The commit #{commitish} DOES NOT exist in #{branch}"
|
94
|
+
end
|
95
|
+
|
96
|
+
puts "Is shallow repo:"
|
97
|
+
exec("rev-parse --is-shallow-repository")
|
98
|
+
|
99
|
+
puts "Last 5 commits befor starting git_fetch_branch_to_depth:"
|
100
|
+
exec("--no-pager log -n 5")
|
86
101
|
|
87
102
|
depth = 0
|
88
103
|
success =
|
89
104
|
(3..6).any? do |factor|
|
90
105
|
depth += Math.exp(factor).to_i
|
91
106
|
|
92
|
-
puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth})
|
93
|
-
exec("git --no-pager log -n 5")
|
107
|
+
puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth})"
|
94
108
|
|
95
109
|
git_fetch_branch_to_depth(branch, depth)
|
96
110
|
commit_exists?(commitish)
|
@@ -147,6 +161,8 @@ module Danger
|
|
147
161
|
end
|
148
162
|
|
149
163
|
def find_merge_base_with_incremental_fetch(repo, from, to)
|
164
|
+
puts "find_merge_base_with_incremental_fetch"
|
165
|
+
|
150
166
|
from_is_ref = commit_is_ref?(from)
|
151
167
|
to_is_ref = commit_is_ref?(to)
|
152
168
|
|
data/lib/danger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-additional-logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-08-
|
12
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|