Skip to content

Commit

Permalink
feat: Add output of passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintyj committed Nov 22, 2023
1 parent 3383f58 commit f0475f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/commitlint/src/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export async function verifyTitle(title: string, configPath: string = ''): Promi
const linterResult = await lint(title, commitlintConfig.rules, getLintOptions(commitlintConfig));

if (linterResult.valid) {
/* eslint-disable no-console */
console.log(`✅ Commitlint tests passed!`);
console.log(linterResult);
/* eslint-enable no-console */
return true;
}
else {
Expand Down

0 comments on commit f0475f0

Please sign in to comment.