Skip to content

Commit a254c82

Browse files
committed
pr_checker: ignore private emails
1 parent b22d056 commit a254c82

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/pr_checker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ class PRChecker {
263263

264264
isOddAuthor(commit) {
265265
const { pr, collaboratorEmails } = this;
266+
267+
// They have turned on the private email feature, can't really check
268+
// anything, GitHub should know how to link that, see nodejs/node#15489
269+
if (!pr.author.email) {
270+
return false;
271+
}
272+
266273
// If they have added the alternative email to their account,
267274
// commit.authoredByCommitter should be set to true by Github
268275
if (commit.authoredByCommitter) {

0 commit comments

Comments
 (0)