danger-additional-logging 0.0.5 → 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/scm_source/git_repo.rb +12 -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
|
@@ -82,12 +82,21 @@ 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
|
86
95
|
|
87
96
|
puts "Is shallow repo:"
|
88
|
-
|
97
|
+
exec("rev-parse --is-shallow-repository")
|
89
98
|
|
90
|
-
puts "
|
99
|
+
puts "Last 5 commits befor starting git_fetch_branch_to_depth:"
|
91
100
|
exec("--no-pager log -n 5")
|
92
101
|
|
93
102
|
depth = 0
|
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
|