danger-additional-logging 0.0.15 → 0.0.16
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 +2 -0
- data/lib/danger/scm_source/git_repo.rb +4 -4
- 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: e90319403251fe4092b4b66c77f1db1e0612cf6c1b8ca6feeaddc7dc8506f573
|
4
|
+
data.tar.gz: 6d6d6f5b4e34de675f5011b57b489dcef79b815ca288d6b6f9c7e37b479fc269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e5db236f5a3ccd0a3baa3e4130b45d5d0bda36c09bfc707419dc81e2a736d84bf9256482ba28ea0e5963fe2619d45e0e9642f6e8d47e837dbd6e1ebb6c8715
|
7
|
+
data.tar.gz: '018e34ee50e9c868603ec4028baeca3e76f3fcba1669ab409e6cfdc1a0e50bd8c9a77d5f5c0446e24a53a9d1e963413faf16d694874a13fd75c17052a770c747'
|
@@ -18,6 +18,8 @@ module Danger
|
|
18
18
|
merge_base = find_merge_base(repo, from, to)
|
19
19
|
commits_in_branch_count = commits_in_branch_count(from, to)
|
20
20
|
|
21
|
+
puts "commits_in_branch_count #{commits_in_branch_count}"
|
22
|
+
|
21
23
|
self.diff = repo.diff(merge_base, to)
|
22
24
|
self.log = repo.log(commits_in_branch_count).between(from, to)
|
23
25
|
end
|
@@ -139,7 +141,7 @@ module Danger
|
|
139
141
|
end
|
140
142
|
|
141
143
|
def commit_not_exists?(sha1)
|
142
|
-
exec("rev-parse --quiet --verify #{sha1}^{commit}").empty?
|
144
|
+
exec("rev-parse --quiet --verify #{sha1}^{commit}", true).empty?
|
143
145
|
end
|
144
146
|
|
145
147
|
def find_merge_base(repo, from, to)
|
@@ -179,14 +181,12 @@ module Danger
|
|
179
181
|
|
180
182
|
def possible_merge_base(repo, from, to)
|
181
183
|
puts "possible_merge_base(from=#{from}, to=#{to})"
|
182
|
-
exec("--no-pager log #{from} -n 50", true)
|
183
|
-
exec("--no-pager log #{to} -n 50", true)
|
184
184
|
|
185
185
|
[repo.merge_base(from, to)].find { |base| commit_exists?(base) }
|
186
186
|
end
|
187
187
|
|
188
188
|
def commits_in_branch_count(from, to)
|
189
|
-
exec("rev-list #{from}..#{to} --count").to_i
|
189
|
+
exec("rev-list #{from}..#{to} --count", true).to_i
|
190
190
|
end
|
191
191
|
|
192
192
|
def commit_is_ref?(commit)
|
data/lib/danger/version.rb
CHANGED