Skip to content

Commit a8d1785

Browse files
committed
donot repot prs not found 404
1 parent d9afc3d commit a8d1785

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/models/apis/github.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@ Github.prototype.listOpenPullRequestsForBranch = function (shortRepo, branch, cb
594594
this.pullRequests.getAll(query, function (err, prs) {
595595
if (err) {
596596
err = (err.code === 404) ?
597-
Boom.notFound('Cannot find open PRs for ' + shortRepo + '@' + branch, { err: err }) :
597+
Boom.notFound('Cannot find open PRs for ' + shortRepo + '@' + branch,
598+
{ err: err, report: false }) :
598599
Boom.create(502, 'Failed to get PRs for ' + shortRepo + '@' + branch, { err: err });
599600
cb(err);
600601
}

scripts/update-github-webhooks-event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function updateHooksEvents(repos, cb) {
9191
}, cb);
9292
}
9393

94-
function finish (err, results) {
94+
function finish (err) {
9595
console.log('DONE: err?', err);
9696
console.log('all errors', allErrors);
9797
process.exit();

0 commit comments

Comments
 (0)