ci(analytics): fix TRAVIS_PULL_REQUEST reporting

process.env.TRAVIS_PULL_REQUEST contains a string and not a boolean value, so we need
to compare it to a string literal rather than do boolean arithmetics.
This commit is contained in:
Igor Minar 2016-03-03 20:07:23 -08:00 committed by Igor Minar
parent b857fd1eeb
commit 912717ff31
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ let customParams = {
// Dev Environment // Dev Environment
cd4: process.env.TRAVIS ? 'Travis CI' : 'Local Dev', cd4: process.env.TRAVIS ? 'Travis CI' : 'Local Dev',
// Travis - Pull Request? // Travis - Pull Request?
cd5: process.env.TRAVIS && process.env.TRAVIS_PULL_REQUEST ? 'true' : 'false', cd5: (process.env.TRAVIS_PULL_REQUEST == 'true') ? 'true' : 'false',
// Travis - Branch Name (master) // Travis - Branch Name (master)
cd6: process.env.TRAVIS_BRANCH, cd6: process.env.TRAVIS_BRANCH,
// Travis - Repo Slug (angular/angular) // Travis - Repo Slug (angular/angular)