Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/commitlint/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]+"
)
10 changes: 10 additions & 0 deletions tests/fixtures/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading