[Pkg-javascript-commits] [node-coveralls] 201/332: Added support for service_pull_request in jenkins using the github pull request plugin's environment variables

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:54:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 199d15ee8b7215e84cb1b133bd913ed718b84da2
Author: Merrifield, Jay <fracmak at gmail.com>
Date:   Tue Apr 21 13:53:13 2015 -0400

    Added support for service_pull_request in jenkins using the github pull request plugin's environment variables
---
 lib/convertLcovToCoveralls.js | 3 +++
 lib/getOptions.js             | 1 +
 2 files changed, 4 insertions(+)

diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js
index 3f604e1..37add87 100644
--- a/lib/convertLcovToCoveralls.js
+++ b/lib/convertLcovToCoveralls.js
@@ -48,6 +48,9 @@ var convertLcovToCoveralls = function(input, options, cb){
     if (options.service_job_id){
       postJson.service_job_id = options.service_job_id;
     }
+    if (options.service_pull_request){
+      postJson.service_pull_request = options.service_pull_request;
+    }
     if (options.repo_token) {
       postJson.repo_token = options.repo_token;
     }
diff --git a/lib/getOptions.js b/lib/getOptions.js
index eab67f4..95a9577 100644
--- a/lib/getOptions.js
+++ b/lib/getOptions.js
@@ -28,6 +28,7 @@ var getBaseOptions = function(cb){
   if (process.env.JENKINS_URL){
     options.service_name = 'jenkins';
     options.service_job_id = process.env.BUILD_ID;
+    options.service_pull_request = process.env.ghprbPullId;
     git_commit = process.env.GIT_COMMIT;
     git_branch = process.env.GIT_BRANCH;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list