Tools: Fixed formatting of git changelog

pull/3338/head
Laurent Cozic 2020-06-06 16:31:31 +01:00
parent faf5eac806
commit c9f1715899
1 changed files with 2 additions and 1 deletions

View File

@ -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)})`;