diff options
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index eab67f4..42a3de1 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -9,6 +9,12 @@ var getBaseOptions = function(cb){ var git_commit = process.env.COVERALLS_GIT_COMMIT; var git_branch = process.env.COVERALLS_GIT_BRANCH; + var match = (process.env.CI_PULL_REQUEST || "").match(/(\d+)$/); + + if (match) { + options.service_pull_request = match[1]; + } + if (process.env.TRAVIS){ options.service_name = 'travis-ci'; options.service_job_id = process.env.TRAVIS_JOB_ID; |
