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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b958caa6c90f22e86207879c0d532f6a84ad3a04711bf7cecb470c8244ab110a
4
- data.tar.gz: f01edb5637a1256d8592cad779ccc6331958c4bc864197ef6eddc25dcaede358
3
+ metadata.gz: 390571d729973fa4be224c9de65d609ec7aaffd0a1c162bdcc5e70c4ebc07923
4
+ data.tar.gz: 613cf532e130b40d62bd5732479d4695fc0fa6a337c89ab324b83357a4b716e5
5
5
  SHA512:
6
- metadata.gz: d5984e2775f7bf506f91cc0f4fb941129a2badbf8eb4528e5fe36efd2fa89e4e367cb6d3f5c76004940b338455ddbcd7a702d8b83d38528ec092e48aba43b4ad
7
- data.tar.gz: d56693b56175aa64f2cd828d3090b9475d5f23fa1e7b88ed4d494cf5a34ce8f4ef15422277211f5b0f786d3584cc1f705ca1ebcb65adfeb792c55fba3088c30a
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
- return if commit_exists?(commitish)
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}), last 5 commits:"
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
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.6".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
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
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-23 00:00:00.000000000 Z
12
+ date: 2023-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide