saddler-reporter-support-git 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: c7ba3ee6e561109454cbb6c3950b6d47765185c3
4
- data.tar.gz: 7ec693a4ed2a65272a062ffa89fc9b6c35374a06
3
+ metadata.gz: fe0678fb49fba7a7f54b803440fa91dbf7a844b4
4
+ data.tar.gz: c94d6b141aff88badcd2e6e5b3578a8938f629d2
5
5
  SHA512:
6
- metadata.gz: 118874bdf3f7559dc161b7e3bdd61355d24f38e7fd078be7db146b2e8f1047cf420dd1e2cc3804dab6006edf1bde329b66c257192aaa49a16f3139f0ed8368ae
7
- data.tar.gz: 0f9fbc34acce66de0be4396a34071a366418748317e3d8f9a96573992d7c41d307dafd7de2eb278fd046f6a436052872168dec78367f45714b1da28e9b7239a5
6
+ metadata.gz: 68613d9fc2edf703d3d13ab945a03be67c5eec7a35b7a3c64e30dc847e6053e3943081f7dd88c8279785eea209037b08dab909a57681699b26895c390a163c14
7
+ data.tar.gz: 8134383e7593be1c6c6ce07a7bb161a00be8eb7440c7a8148fe132c6fdea0dc0138947eadce13f2d599e109891724e27e08de59acc01a161697b1d93bd51c16f
@@ -1,3 +1,9 @@
1
+ <a name="2.0.1"></a>
2
+ ## [2.0.1](https://github.com/packsaddle/ruby-saddler-reporter-support-git/compare/v2.0.0...v2.0.1) (2016-06-05)
3
+
4
+ * **repository:** Fix jenkins error: "commit_id is not part of the pull request"([3724bab](https://github.com/packsaddle/ruby-saddler-reporter-support-git/commit/3724bab)), fixes [#44](https://github.com/packsaddle/ruby-saddler-reporter-support-git/pull/44)
5
+
6
+
1
7
  <a name="2.0.0"></a>
2
8
  # [2.0.0](https://github.com/packsaddle/ruby-saddler-reporter-support-git/compare/v1.0.0...v2.0.0) (2016-05-14)
3
9
 
@@ -63,8 +63,15 @@ module Saddler
63
63
  # @return [::Git::Object] merging object
64
64
  def merging_object
65
65
  return head unless merge_commit?(head)
66
- commit = head.parents.select do |parent|
67
- ![dig_sha(tracking), dig_sha(origin_tracking)].compact.include?(parent.sha)
66
+ if ENV['ghprbActualCommit'] && !ENV['ghprbActualCommit'].empty?
67
+ # GitHub pull request builder plugin (for Jenkins)
68
+ commit = head.parents.select do |parent|
69
+ parent.sha == ENV['ghprbActualCommit']
70
+ end
71
+ else
72
+ commit = head.parents.select do |parent|
73
+ ![dig_sha(tracking), dig_sha(origin_tracking)].compact.include?(parent.sha)
74
+ end
68
75
  end
69
76
  return commit.last if commit.count == 1
70
77
  head # fallback
@@ -3,7 +3,7 @@ module Saddler
3
3
  module Support
4
4
  module Git
5
5
  # version
6
- VERSION = '2.0.0'.freeze
6
+ VERSION = '2.0.1'.freeze
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saddler-reporter-support-git
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanemat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-14 00:00:00.000000000 Z
11
+ date: 2016-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git