Either.fromNullable(
                    commits.filter((commit) =>
                        convention.match.some((match) => new RegExp(match).test(commit.type)),
                    ),
                ).map(