From 70b1169c07fcbc2b6ac7d9b795db33676946f677 Mon Sep 17 00:00:00 2001 From: wh201906 Date: Wed, 5 Apr 2023 00:06:35 +0800 Subject: [PATCH] Reduce unnecessary mentions --- src/pullrequest/pullRequestCommentContent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pullrequest/pullRequestCommentContent.ts b/src/pullrequest/pullRequestCommentContent.ts index 29945e79..28a86df8 100644 --- a/src/pullrequest/pullRequestCommentContent.ts +++ b/src/pullrequest/pullRequestCommentContent.ts @@ -36,7 +36,7 @@ function dco(signed: boolean, committerMap: CommitterMap): string { if (committersCount > 1 && committerMap && committerMap.signed && committerMap.notSigned) { text += `**${committerMap.signed.length}** out of **${committerMap.signed.length + committerMap.notSigned.length}** committers have signed the DCO.` - committerMap.signed.forEach(signedCommitter => { text += `
:white_check_mark: @${signedCommitter.name}` }) + committerMap.signed.forEach(signedCommitter => { text += `
:white_check_mark: (${signedCommitter.name})[https://github.com/${signedCommitter.name}]` }) committerMap.notSigned.forEach(unsignedCommitter => { text += `
:x: @${unsignedCommitter.name}` }) @@ -78,7 +78,7 @@ function cla(signed: boolean, committerMap: CommitterMap): string { if (committersCount > 1 && committerMap && committerMap.signed && committerMap.notSigned) { text += `**${committerMap.signed.length}** out of **${committerMap.signed.length + committerMap.notSigned.length}** committers have signed the CLA.` - committerMap.signed.forEach(signedCommitter => { text += `
:white_check_mark: @${signedCommitter.name}` }) + committerMap.signed.forEach(signedCommitter => { text += `
:white_check_mark: (${signedCommitter.name})[https://github.com/${signedCommitter.name}]` }) committerMap.notSigned.forEach(unsignedCommitter => { text += `
:x: @${unsignedCommitter.name}` })