* 🚧 chore(prepare-commit-msg-hook.ts): remove console.log and add TODO comment

The console.log statement is removed as it is not needed. A TODO comment is added to remind the developer to change the code to read file and write file with commitMessage.
This commit is contained in:
di-sukharev
2023-03-06 23:56:38 +08:00
parent 3966c4c53a
commit 60325f53b9
+1 -2
View File
@@ -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`);