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 4cbf485

Browse files
timsu92Lee-W
authored andcommitted
fix(init): use pre-push as pre-commit stage
Original "push" stage has been deprecated since pre-commit v3.2.0. See pre-commit/pre-commit#2732 and pre-commit/pre-commit#2808 for detailed information.
1 parent 4ca1190 commit 4cbf485

File tree

4 files changed

+401
-389
lines changed

4 files changed

+401
-389
lines changed

‎.pre-commit-hooks.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
pass_filenames: false
2525
language: python
2626
language_version: python3
27-
minimum_pre_commit_version: "1.4.3"
27+
minimum_pre_commit_version: "3.2.0"

‎commitizen/commands/init.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def _get_config_data(self) -> dict[str, Any]:
351351
"rev": f"v{__version__}",
352352
"hooks": [
353353
{"id": "commitizen"},
354-
{"id": "commitizen-branch", "stages": ["push"]},
354+
{"id": "commitizen-branch", "stages": ["pre-push"]},
355355
],
356356
}
357357

0 commit comments

Comments
(0)

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