Skip to content

Commit

Permalink
fix(cli): always print post-commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Oct 22, 2023
1 parent a69dabe commit 0ca8789
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,12 @@ async function _commit(
}
}
: undefined,
postCommit: options?.postCommit
? async (commit) => {
console.log(`📝 ${commit.message}`);
for (const task of options?.postCommit ?? []) {
await _task(task);
}
postCommit: async (commit) => {
console.log(`📝 ${commit.message}`);
for (const task of options?.postCommit ?? []) {
await _task(task);
}
: undefined,
},
});
await GitCommitSequence.exec(commits);
console.log();
Expand Down

0 comments on commit 0ca8789

Please sign in to comment.