Skip to content

Commit 7e8a994

Browse files
committed
chore: ignore update and merge messages
1 parent 2e0a806 commit 7e8a994

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.commitlintrc.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ const config: UserConfig = {
2222
],
2323
],
2424
},
25+
// ignore commit messages github uses on their PR buttons, "Update" or "Merge branch"
26+
ignores: [
27+
(commitMessage) => {
28+
// add an exception for github
29+
return (
30+
commitMessage.startsWith('Update ') ||
31+
/^Merge branch '.*' into [a-zA-Z0-9\/\-_]+$/.test(commitMessage)
32+
);
33+
},
34+
],
2535
};
2636

2737
export default config;

0 commit comments

Comments
 (0)