Skip to content

Commit 432285d

Browse files
chore: ignore github messages in commitlint
2 parents 2537b92 + 7e8a994 commit 432285d

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)