Skip to content

Commit 62ddc38

Browse files
committed
donot report issue not found event
1 parent 93bfda7 commit 62ddc38

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/models/apis/github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ Github.prototype.addComment = function(shortRepo, issueId, text, cb) {
487487
debug('back from creating issue comment', err);
488488
if (err) {
489489
err = (err.code === 404) ?
490-
Boom.notFound('Issue ' + shortRepo + '/issues/' + issueId + ' not found.', { err: err }) :
490+
Boom.notFound('Issue ' + shortRepo + '/issues/' + issueId + ' not found.', { err: err, report: false }) :
491491
Boom.create(502, 'Failed to get issue comments ' + shortRepo + '/issues/' + issueId ,
492492
{ err: err });
493493
cb(err);

scripts/update-github-webhooks-event.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ function updateHooksEvents(repos, cb) {
8282
callback(err);
8383
}
8484
}
85-
callback(null);
85+
else {
86+
callback(null);
87+
}
8688
});
8789
}, cb);
8890
}

0 commit comments

Comments
 (0)