Skip to content

Commit

Permalink
fix: lowercase scope when filtering (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinpetr authored Sep 19, 2024
1 parent 83029dd commit 19a862c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/commands/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ export default async function defaultMain(args: Argv) {
const rawCommits = await getGitDiff(config.from, config.to);

// Parse commits as conventional commits
const commits = parseCommits(rawCommits, config).filter(
(c) =>
config.types[c.type] &&
!(c.type === "chore" && c.scope === "deps" && !c.isBreaking)
);
const commits = parseCommits(rawCommits, config)
.map((c) => ({ ...c, type: c.type.toLowerCase() /* #198 */ }))
.filter(
(c) =>
config.types[c.type] &&
!(c.type === "chore" && c.scope === "deps" && !c.isBreaking)
);

// Shortcut for canary releases
if (args.canary) {
Expand Down

0 comments on commit 19a862c

Please sign in to comment.