From c9f1715899a07c273249c80949c38bf0f9cd3d71 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 6 Jun 2020 16:31:31 +0100 Subject: [PATCH] Tools: Fixed formatting of git changelog --- Tools/git-changelog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/git-changelog.js b/Tools/git-changelog.js index 52875b68eb..0f56049bed 100644 --- a/Tools/git-changelog.js +++ b/Tools/git-changelog.js @@ -210,7 +210,8 @@ function formatCommitMessage(msg, author, options) { } let authorMd = null; - if (author && (author.login || author.name) && author.login !== 'laurent22') { + const isLaurent = author.login === 'laurent22' || author.email === 'laurent22@users.noreply.github.com'; + if (author && (author.login || author.name) && !isLaurent) { if (author.login) { const escapedLogin = author.login.replace(/\]/g, ''); authorMd = `[@${escapedLogin}](https://github.com/${encodeURI(author.login)})`;