danger-additional-logging 0.0.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3d81bd7b8e7070749d3c7ae9465372412391e6f56fe3d34c61af7edcc8d28cb
4
- data.tar.gz: 40730e58a102c5697fb244f6fa52a2862f59d107a2e86aa6e48e9699f6cda028
3
+ metadata.gz: b958caa6c90f22e86207879c0d532f6a84ad3a04711bf7cecb470c8244ab110a
4
+ data.tar.gz: f01edb5637a1256d8592cad779ccc6331958c4bc864197ef6eddc25dcaede358
5
5
  SHA512:
6
- metadata.gz: 2cc91e3ac436874ee010c87f06b9485fa99d24a888ae44dc3ea31a2b990bb0d58eed56c8fab04662ac9447a46b91c79d6ee57e4d7bda5fb8bffe8a6473b27660
7
- data.tar.gz: '0256480cb7b454addd4cc33c0463f26e48113a89daac1efa9300a7927cf2c1e123dc1295ea8220bbad47ceaef83f5cf16f2dea872dad9a6fec30920c824a59e6'
6
+ metadata.gz: d5984e2775f7bf506f91cc0f4fb941129a2badbf8eb4528e5fe36efd2fa89e4e367cb6d3f5c76004940b338455ddbcd7a702d8b83d38528ec092e48aba43b4ad
7
+ data.tar.gz: d56693b56175aa64f2cd828d3090b9475d5f23fa1e7b88ed4d494cf5a34ce8f4ef15422277211f5b0f786d3584cc1f705ca1ebcb65adfeb792c55fba3088c30a
@@ -81,15 +81,16 @@ module Danger
81
81
  end
82
82
 
83
83
  def ensure_commitish_exists_on_branch!(branch, commitish)
84
+ puts "ensure_commitish_exists_on_branch(#{branch}, commitish=#{commitish})!"
84
85
  return if commit_exists?(commitish)
85
86
 
86
- puts "ensure_commitish_exists_on_branch!"
87
-
88
87
  depth = 0
89
88
  success =
90
89
  (3..6).any? do |factor|
91
90
  depth += Math.exp(factor).to_i
92
- puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth})"
91
+
92
+ puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth}), last 5 commits:"
93
+ exec("git --no-pager log -n 5")
93
94
 
94
95
  git_fetch_branch_to_depth(branch, depth)
95
96
  commit_exists?(commitish)
@@ -108,6 +109,7 @@ module Danger
108
109
  end
109
110
 
110
111
  def git_fetch_branch_to_depth(branch, depth)
112
+ puts "fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}"
111
113
  exec("fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}")
112
114
  end
113
115
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.4".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.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox