danger-additional-logging 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c34b31ca7aba2cf93ff0f0363e6597369bd93b737925f7a9910e58d009b40ca3
4
- data.tar.gz: 0e783bcb7662b8232ad5454ee97d8a35bcc851489c774c7b1b3972dc31595667
3
+ metadata.gz: e90319403251fe4092b4b66c77f1db1e0612cf6c1b8ca6feeaddc7dc8506f573
4
+ data.tar.gz: 6d6d6f5b4e34de675f5011b57b489dcef79b815ca288d6b6f9c7e37b479fc269
5
5
  SHA512:
6
- metadata.gz: 0ea90b5383dc8a60e1d27bbb8a2791bf0ead9999e2774c09b9deb50b945db32d89dc055481334d5f98cf4b2faaa84db449b4cdd8452431bd4c981985f90560a8
7
- data.tar.gz: 5b9c4e0747619afa32bc4b63b27c3961c28a24c3bd0b4075b93349f19f096360291e1b78e9bfe21f824c50e5687a3932321ce1662137780a4fc83c4c46e9dd9a
6
+ metadata.gz: 91e5db236f5a3ccd0a3baa3e4130b45d5d0bda36c09bfc707419dc81e2a736d84bf9256482ba28ea0e5963fe2619d45e0e9642f6e8d47e837dbd6e1ebb6c8715
7
+ data.tar.gz: '018e34ee50e9c868603ec4028baeca3e76f3fcba1669ab409e6cfdc1a0e50bd8c9a77d5f5c0446e24a53a9d1e963413faf16d694874a13fd75c17052a770c747'
@@ -246,6 +246,8 @@ module Danger
246
246
  end
247
247
 
248
248
  def post_results(danger_id, new_comment, remove_previous_comments)
249
+ puts "post_results"
250
+
249
251
  violations = violation_report
250
252
  report = {
251
253
  warnings: violations[:warnings].uniq,
@@ -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)
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.15".freeze
2
+ VERSION = "0.0.16".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.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox