trent 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/github/github.rb +3 -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: f9343dcc3d2737393299fe01ca4f25e7b15df7f8ddd6d4b9db566faafab0ee84
|
4
|
+
data.tar.gz: 4b863521a37dde2547b46329c8639d511807307fd520476f1d06d5cad6b1a23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56026a07e2bd98127dc4eae8dae393a39d194098e00df9225c8e3ee6652175db5436c8ebd7fd75ac00a047469efca175d42b57ead5f0822d4e9385e3035f5918
|
7
|
+
data.tar.gz: 7056a4663e23abc420934c2e3a798ca9149d4d899c28be757232ff444a149ca58e4f4f242e244c86fa1ca99706556adbda7175fa4473e6534a289fba4b2a15c6
|
data/CHANGELOG.md
CHANGED
data/lib/github/github.rb
CHANGED
@@ -12,7 +12,9 @@ class GitHub
|
|
12
12
|
|
13
13
|
# Comment on Pull Request
|
14
14
|
def comment(message)
|
15
|
-
|
15
|
+
# https://docs.travis-ci.com/user/environment-variables/#convenience-variables
|
16
|
+
# Must check if 'false' because `TRAVIS_PULL_REQUEST` always has a value.
|
17
|
+
if ENV['TRAVIS_PULL_REQUEST'].to_s == 'false'
|
16
18
|
Log.warning("Not in pull request, skipping GitHub comment. Message: #{message}")
|
17
19
|
return
|
18
20
|
end
|