saddler-reporter-github 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saddler/reporter/github/client.rb +9 -1
- data/lib/saddler/reporter/github/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f3d99778199ea1e833e11f7aa2cd6e091382d27
|
4
|
+
data.tar.gz: 6a6ae90f0f67e915039aace30f11d7a2dc78b027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 513aabc1f63421c963a4e580e82524de5215c0818bafde2d0885e516d75d12cc6be485c389436545837018c6b6576e308e072dabb9188e44b49626ed36cbd8e3
|
7
|
+
data.tar.gz: 7a123d94a41d3ba90e2107a114fba4a54ddf34158f610ebe809c9c341191c31e9526cb700c13c84ab7c2200d004d13bc323f05a76d1b844528caba4cc101e506
|
@@ -56,7 +56,7 @@ module Saddler
|
|
56
56
|
|
57
57
|
def pull_id
|
58
58
|
@pull_id ||= begin
|
59
|
-
pull_id =
|
59
|
+
pull_id = env_pull_id
|
60
60
|
if pull_id
|
61
61
|
pull_id.to_i
|
62
62
|
elsif @repo.current_branch
|
@@ -81,6 +81,14 @@ module Saddler
|
|
81
81
|
def access_token
|
82
82
|
ENV['GITHUB_ACCESS_TOKEN']
|
83
83
|
end
|
84
|
+
|
85
|
+
def env_pull_id
|
86
|
+
if ENV['PULL_REQUEST_ID']
|
87
|
+
ENV['PULL_REQUEST_ID']
|
88
|
+
elsif ENV['TRAVIS_PULL_REQUEST'] && ENV['TRAVIS_PULL_REQUEST'] != 'false'
|
89
|
+
ENV['TRAVIS_PULL_REQUEST']
|
90
|
+
end
|
91
|
+
end
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|