pronto 0.5.1 → 0.5.2

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: 745decf88e9fb240c3a33e5ac1d0969872f74ef4
4
- data.tar.gz: 256b5eb2b0dcb08bf3322dd29f4499d8cdd47bef
3
+ metadata.gz: 195c3906036b06ef0b74e616670e720383e55b04
4
+ data.tar.gz: 0029eaab3605b1ef44a70b27bab5b3bfbc88f237
5
5
  SHA512:
6
- metadata.gz: 0880f55cf76eb358fc5668ba9ef18ee1182d3d4d43ca5fce301c5862701a0524a95caedf2a90719f58bacd17ed23bbcddfd585d80200f5cb7543617281f94d8a
7
- data.tar.gz: acbd3f8bedf6e2a5a830ba254307e59cab146993268d8e23375a6c6ee9a32386e9a77dd7ac23d9f61eecbe6b8a79d2141d808b557a24bd69da6573d6d7a7e939
6
+ metadata.gz: 31ed61645876409ba9ddcb7baf707b4c645f5c81636b791b23a4c1b3584a907ca8f83737ac85345e0c893bd0c61879b91746d53fe0faa6ea882b0e551863ae4e
7
+ data.tar.gz: 75c37c34cc8871a7f9dcd769c711a0ce791922a904855f8a1ef204e0e0753f1822986020c5c3e4c17c143f14fc540f2468ac4352a7724092f65f8afa74e0dbb1
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@
6
6
  ### Changes
7
7
  ### Bugs fixed
8
8
 
9
+ ## 0.5.2
10
+
11
+ ### Bugs fixed
12
+
13
+ * GithubPullRequestFormatter was working incorrectly when `PULL_REQUEST_ID` is not specified. Introduced in `0.5.1`
14
+
9
15
  ## 0.5.1
10
16
 
11
17
  ### Changes
data/lib/pronto/github.rb CHANGED
@@ -68,10 +68,9 @@ module Pronto
68
68
  end
69
69
 
70
70
  def pull
71
- return unless @repo.branch
72
71
  @pull ||= if env_pull_id
73
72
  pull_requests.find { |pr| pr[:number].to_i == env_pull_id.to_i }
74
- else
73
+ elsif @repo.branch
75
74
  pull_requests.find { |pr| pr[:head][:ref] == @repo.branch }
76
75
  end
77
76
  end
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras