* 🚧 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:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user