Skip to content

Commit

Permalink
fix: fix commit validation logging
Browse files Browse the repository at this point in the history
Uses the correct function signature for commitlint#format
  • Loading branch information
jpdstan committed Dec 2, 2019
1 parent d884b24 commit e377b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lint-commits.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ async function validateCommit(commitMeta, opts, logger) {
const detail = commitMeta.commit.short ? ` ${commitMeta.commit.short}` : '';
logger.error(`😞 Errors found with commit${detail}`);
logger.error(`💬 ${commitMeta.message}`);
const formatted = format({ errors: report.errors });
formatted.forEach((item) => logger.log(item));
const formatted = format({ results: [report] });
logger.log(formatted);
throw new SemanticReleaseError(
`The commit message is not formatted correctly`,
'EINVALIDCOMMIT'
Expand Down

0 comments on commit e377b7d

Please sign in to comment.