Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions @commitlint/prompt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ type Commit = (input: string) => void;
* Entry point for commitizen
* @param _ inquirer instance passed by commitizen, unused
* @param commit callback to execute with complete commit message
* @return generated commit message
* @return {void}
*/
export async function prompter(_: unknown, commit: Commit): Promise<void> {
const message = await input(vorpal);
commit(message);
export function prompter(_: unknown, commit: Commit): void {
input(vorpal).then((message) => {
commit(message);
});
}