Skip to content

Commit edd107a

Browse files
committed
pr_checker: show the pr author email and their status
1 parent 7947bb2 commit edd107a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/pr_checker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ class PRChecker {
268268
return true;
269269
}
270270

271-
const prAuthor = pr.author.login;
272-
cli.warn(`PR author is: @${prAuthor}`);
271+
const prAuthor = `${pr.author.login}(${pr.author.email})`;
272+
cli.warn(`PR author is a new contributor: @${prAuthor}`);
273273
for (const c of oddCommits) {
274274
const { oid, author } = c.commit;
275275
const hash = oid.slice(0, 7);

test/unit/pr_checker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ describe('PRChecker', () => {
530530

531531
const expectedLogs = {
532532
warn: [
533-
['PR author is: @pr_author'],
533+
['PR author is a new contributor: @pr_author([email protected])'],
534534
['- commit e3ad7c7 is authored by [email protected]'],
535535
['- commit da39a3e is authored by [email protected]']
536536
]

0 commit comments

Comments
 (0)