Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f093717

Browse files
ci(pre-commit): Include : in version_files regex
Commitizen runs bump on itself to, among other things, manage the version it uses of its own pre-commit hooks. When searching .pre-commit-config.yaml for the version number of Commitizen, look for "rev:" rather than "rev" to reduce the likelihood of a false positive now that colons are permitted in version_files regexes.
1 parent 693e804 commit f093717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tag_format = "v$version"
44
version_files = [
55
"pyproject.toml:version",
66
"commitizen/__version__.py",
7-
".pre-commit-config.yaml:rev.\\s+(?=[^\\n]+Commitizen)"
7+
".pre-commit-config.yaml:rev:.\\s+(?=[^\\n]+Commitizen)"
88
]
99

1010
[tool.black]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /