bubbler_ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bubbler_ruby/api.rb +2 -0
- data/lib/bubbler_ruby/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: a2404f75be949f1c9dfc13156f883edf55a79004ba3ee6d665570b4e67473d13
|
4
|
+
data.tar.gz: 9ebcbeff64912755aadfc91ea3b16ce6c9d7d5cdd9fec404fc2745e935e35bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bee38d1d822419a71255a4098d64feee0d340e3e036238a2af3db37900dc75cf6ba8a196f2d7f7633099ff62d455f9d1684868d1f92fb4df19593acb76dc372
|
7
|
+
data.tar.gz: e574d9bb263980c55d859365e006578870b247be1847ce2b32e4f6473561e0ef131331fb6df8c8a77085b9c1086ed3a370d947115ed2dde0620443a5874d99f0
|
data/lib/bubbler_ruby/api.rb
CHANGED
@@ -45,6 +45,8 @@ module Bubbler
|
|
45
45
|
# CIRCLE_PR_NUMBER=2 (Only populated on forked PRs)
|
46
46
|
# CIRCLE_PULL_REQUEST= https://github.com/mark579/pull/2
|
47
47
|
def self.circleci_pr_number
|
48
|
+
return unless ENV['CIRCLE_PR_NUMBER'] || ENV['CIRCLE_PULL_REQUEST']
|
49
|
+
|
48
50
|
return ENV['CIRCLE_PR_NUMBER'] if ENV['CIRCLE_PR_NUMBER']
|
49
51
|
return ENV['CIRCLE_PULL_REQUEST'].split('/').last
|
50
52
|
end
|
data/lib/bubbler_ruby/version.rb
CHANGED