From 60325f53b9f265889dd2fa4dff099495dd566dc8 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Mon, 6 Mar 2023 23:56:38 +0800 Subject: [PATCH] =?UTF-8?q?*=20=F0=9F=9A=A7=20chore(prepare-commit-msg-hoo?= =?UTF-8?q?k.ts):=20remove=20console.log=20and=20add=20TODO=20comment=20Th?= =?UTF-8?q?e=20console.log=20statement=20is=20removed=20as=20it=20is=20not?= =?UTF-8?q?=20needed.=20A=20TODO=20comment=20is=20added=20to=20remind=20th?= =?UTF-8?q?e=20developer=20to=20change=20the=20code=20to=20read=20file=20a?= =?UTF-8?q?nd=20write=20file=20with=20commitMessage.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/prepare-commit-msg-hook.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/prepare-commit-msg-hook.ts b/src/commands/prepare-commit-msg-hook.ts index b0ce710..a8f3c71 100644 --- a/src/commands/prepare-commit-msg-hook.ts +++ b/src/commands/prepare-commit-msg-hook.ts @@ -37,8 +37,7 @@ export const prepareCommitMessageHook = async () => { if (typeof commitMessage !== 'string') throw new Error(commitMessage.error); - console.log({ messageFilePath, commitMessage }); - + // TODO: change to read file > write file with commitMessage await fs.appendFile(messageFilePath, commitMessage); outro(`${chalk.green('✔')} commit done`);