diff --git a/src/commitlint/constants.py b/src/commitlint/constants.py index c87faf1..499fcd7 100644 --- a/src/commitlint/constants.py +++ b/src/commitlint/constants.py @@ -24,5 +24,6 @@ r"^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))$|" r"^Merge remote-tracking branch(\s*)(.*)$|" r"^Automatic merge(.*)$|" - r"^Auto-merged (.*?) into (.*)$" + r"^Auto-merged (.*?) into (.*)$|" + r"[Bb]ump [^\s]+ from [^\s]+ to [^\s]+" ) diff --git a/tests/fixtures/linter.py b/tests/fixtures/linter.py index d07a816..6d4443d 100644 --- a/tests/fixtures/linter.py +++ b/tests/fixtures/linter.py @@ -51,7 +51,17 @@ True, [], ), + ("feat!: breaking feature", True, []), + # ignored commits (success) ("Merge pull request #123", True, []), + ("Bump urllib3 from 1.26.5 to 1.26.17", True, []), + ("Bump github.com/ollama/ollama from 0.1.48 to 0.2.0", True, []), + ("bump @babel/traverse from 7.22.17 to 7.24.0", True, []), + ( + "Bump github.com/ollama/ollama from 0.1.48 to 0.2.0\n\nthis is a commit body", + True, + [], + ), # incorrect format check ("feat add new feature", False, [INCORRECT_FORMAT_ERROR]), # header length check