Skip to content

Commit dc169ba

Browse files
authored
feat: update prepare-commit-msg to commit-msg (#274)
fix: update prepare-commit-msg to commit-msg
1 parent dc9dd4e commit dc169ba

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ rm -f test_commit.txt test_commit_invalid.txt test_complex_commit.txt
107107
### Integration Testing
108108
```bash
109109
# Test as pre-commit hook
110-
pre-commit try-repo . --verbose --hook-stage prepare-commit-msg
110+
pre-commit try-repo . --verbose --hook-stage commit-msg
111111

112112
# Test wheel installation
113113
python3 -m pip install dist/*.whl # After running nox -s build

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ci:
55
autoupdate_schedule: quarterly
66

77
# https://pre-commit.com/
8-
# prepare-commit-msg is used by hook id: check-message
9-
default_install_hook_types: [pre-commit, prepare-commit-msg]
8+
# commit-msg is used by hook id: check-message
9+
default_install_hook_types: [pre-commit, commit-msg]
1010
repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
1212
rev: v6.0.0

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
args: [--message]
66
pass_filenames: true
77
language: python
8-
stages: [commit-msg, prepare-commit-msg]
8+
stages: [commit-msg]
99
- id: check-branch
1010
name: check branch naming
1111
description: ensures branch naming to match regex

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ We appreciate your contributions to make Commit Check even better!
2121
### Debug commit-check pre-commit hook
2222

2323
```bash
24-
pre-commit try-repo ./../commit-check/ check-message --verbose --hook-stage prepare-commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
24+
pre-commit try-repo ./../commit-check/ check-message --verbose --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
2525
```
2626

2727
### Debug commit-check wheel package

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Running as pre-commit hook
7171
- repo: https://github.com/commit-check/commit-check
7272
rev: the tag or revision
7373
hooks: # support hooks
74-
- id: check-message # requires prepare-commit-msg hook
74+
- id: check-message # requires commit-msg hook
7575
- id: check-branch
7676
- id: check-author-name
7777
- id: check-author-email

0 commit comments

Comments
 (0)