From 27fe4112a08219d9c0053c9ec516981ba5ffe3e8 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Thu, 15 Jan 2026 18:55:31 +0300 Subject: [PATCH] Fixed author email --- src/utils/repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/repository.ts b/src/utils/repository.ts index 6456b21..292dd5f 100644 --- a/src/utils/repository.ts +++ b/src/utils/repository.ts @@ -24,7 +24,7 @@ export class Repository { const authorName = this._config.repository?.commit?.author?.name || defaultAuthor.name; const authorEmail = - this._config.repository?.commit?.author?.name || + this._config.repository?.commit?.author?.email || defaultAuthor.email; try { @@ -32,7 +32,7 @@ export class Repository { await exec(`git config user.email "${authorEmail}"`); } catch (error) { // @ts-expect-error - error.message = `Error authenticating user "${authorName}" with e-mail "${author.email}": ${error.message}`; + error.message = `Error authenticating user "${authorName}" with e-mail "${authorEmail}": ${error.message}`; throw error; }