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:
parent
b857fd1eeb
commit
912717ff31
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue