trent 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/github/github.rb +3 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f1c859844b58137c350ba12bd63c3be0cbb31cb47bb3355081c41e0ffb28f53
4
- data.tar.gz: 5fd4d79c8f89e8945c75d1d16676f5cadf0e2cc5c236d326f95d71f92e7c43f5
3
+ metadata.gz: f9343dcc3d2737393299fe01ca4f25e7b15df7f8ddd6d4b9db566faafab0ee84
4
+ data.tar.gz: 4b863521a37dde2547b46329c8639d511807307fd520476f1d06d5cad6b1a23c
5
5
  SHA512:
6
- metadata.gz: 30482d95de07171e55bc1f58c1c397c93203f9c1f907ee12c44f97548df0851f3907715b0302e627151883c67b3ba60858f126fcd3e8c2c7bbff675a71b780fc
7
- data.tar.gz: b5636c209077500c3945e6e6e6b13c2857a516f91b9eed1d25ebf1b2ad307df1523321d5a071eb4469cc20cc290086fa46087511b762a8a526ac2da68f78d58c
6
+ metadata.gz: 56026a07e2bd98127dc4eae8dae393a39d194098e00df9225c8e3ee6652175db5436c8ebd7fd75ac00a047469efca175d42b57ead5f0822d4e9385e3035f5918
7
+ data.tar.gz: 7056a4663e23abc420934c2e3a798ca9149d4d899c28be757232ff444a149ca58e4f4f242e244c86fa1ca99706556adbda7175fa4473e6534a289fba4b2a15c6
@@ -1,3 +1,8 @@
1
+ ### [0.2.2] 2018-08-27
2
+
3
+ ### Fixed
4
+ - Commenting on a GitHub pull request checks the value of `TRAVIS_PULL_REQUEST`, as there is always a value.
5
+
1
6
  ### [0.2.1] 2018-08-27
2
7
 
3
8
  ### Fixed
@@ -12,7 +12,9 @@ class GitHub
12
12
 
13
13
  # Comment on Pull Request
14
14
  def comment(message)
15
- unless ENV['TRAVIS_PULL_REQUEST']
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Bostian