fix(parser): continue on unparsable commit message

We should not fail the whole process if a single commit message is
unparsable.

Instead we now log the issue and ignore the commit.
This commit is contained in:
Julian Tölle 2024-09-07 21:10:42 +02:00
parent 2010ac1143
commit 6bae554d05
3 changed files with 13 additions and 7 deletions

View file

@ -71,7 +71,7 @@ func run(cmd *cobra.Command, _ []string) error {
f,
logger,
flagBranch,
conventionalcommits.NewParser(),
conventionalcommits.NewParser(logger),
versioning.SemVerNextVersion,
extraFiles,
[]updater.NewUpdater{updater.Generic},