Browse Source

Merge pull request #1007 from svaarala/testrunner-pull-request-opened

Fix testrunner pull_request opened handling
pull/937/merge
Sami Vaarala 8 years ago
committed by GitHub
parent
commit
40c0b05b28
  1. 2
      testrunner/server-node/githubutil.js

2
testrunner/server-node/githubutil.js

@ -344,7 +344,7 @@ function handleGithubPullRequest(req, res, state) {
return;
}
var commitHash = body.after;
var commitHash = body.after || body.pull_request && body.pull_request.head && body.pull_request.head.sha;
var senderName = body.sender && body.sender.login;
if (!senderName) {
console.log('ignoring github webhook "pull_request", missing sender name');

Loading…
Cancel
Save