Skip to content

Commit 19a862c

Browse files
authored
fix: lowercase scope when filtering (#199)
1 parent 83029dd commit 19a862c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/commands/default.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ export default async function defaultMain(args: Argv) {
4141
const rawCommits = await getGitDiff(config.from, config.to);
4242

4343
// Parse commits as conventional commits
44-
const commits = parseCommits(rawCommits, config).filter(
45-
(c) =>
46-
config.types[c.type] &&
47-
!(c.type === "chore" && c.scope === "deps" && !c.isBreaking)
48-
);
44+
const commits = parseCommits(rawCommits, config)
45+
.map((c) => ({ ...c, type: c.type.toLowerCase() /* #198 */ }))
46+
.filter(
47+
(c) =>
48+
config.types[c.type] &&
49+
!(c.type === "chore" && c.scope === "deps" && !c.isBreaking)
50+
);
4951

5052
// Shortcut for canary releases
5153
if (args.canary) {

0 commit comments

Comments
 (0)