Skip to content

Commit

Permalink
chore: ignore update and merge messages
Browse files Browse the repository at this point in the history
  • Loading branch information
innerdvations committed Jan 31, 2025
1 parent 2e0a806 commit 7e8a994
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ const config: UserConfig = {
],
],
},
// ignore commit messages github uses on their PR buttons, "Update" or "Merge branch"
ignores: [
(commitMessage) => {
// add an exception for github
return (
commitMessage.startsWith('Update ') ||
/^Merge branch '.*' into [a-zA-Z0-9\/\-_]+$/.test(commitMessage)
);
},
],
};

export default config;

0 comments on commit 7e8a994

Please sign in to comment.