Skip to content

Commit 2f5773e

Browse files
committed
pr_checker: show the pr author email and their status
1 parent c652c5b commit 2f5773e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/pr_checker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ class PRChecker {
247247
return true;
248248
}
249249

250-
const prAuthor = pr.author.login;
251-
cli.warn(`PR author is: @${prAuthor}`);
250+
const prAuthor = `${pr.author.login}(${pr.author.email})`;
251+
cli.warn(`PR author is a new contributor: @${prAuthor}`);
252252
for (const c of oddCommits) {
253253
const { oid, author } = c.commit;
254254
const hash = oid.slice(0, 7);

test/unit/pr_checker.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ describe('PRChecker', () => {
416416

417417
const expectedLogs = {
418418
warn: [
419-
['PR author is: @pr_author'],
419+
['PR author is a new contributor: @pr_author(pr_author@example.com)'],
420420
['- commit e3ad7c7 is authored by test@example.com'],
421421
['- commit da39a3e is authored by test@example.com']
422422
]

0 commit comments

Comments
 (0)