Skip to content

Commit

Permalink
feat: allow bump commits
Browse files Browse the repository at this point in the history
  • Loading branch information
aj3sh committed Jul 16, 2024
1 parent 0d9c8d1 commit c7c0ce0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit c7c0ce0

Please sign in to comment.