Skip to content

Commit f90ea05

Browse files
committed
chore: normalize 'commits' usage
1 parent cc174f0 commit f90ea05

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
name: Conventional Commit
33
entry: conventional-pre-commit.sh
44
language: script
5-
description: Checks commit message for Conventional Commit formatting
5+
description: Checks commit message for Conventional Commits formatting
66
always_run: true
77
stages: [commit-msg]

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# conventional-pre-commit
22

33
A [`pre-commit`](https://pre-commit.com) hook to check commit messages for
4-
[Conventional Commit](https://conventionalcommits.org) formatting.
4+
[Conventional Commits](https://conventionalcommits.org) formatting.
55

66
## Usage
77

@@ -46,9 +46,11 @@ Conventional Commit......................................................Failed
4646
4747
[Commit message] add a new feature
4848
49-
Your commit message doesn't look like a Conventional Commit https://www.conventionalcommits.org/
49+
Your commit message does not follow Conventional Commits formatting
50+
https://www.conventionalcommits.org/
5051
51-
Conventional Commit messages start with one of the below types, followed by a colon, followed by the message:
52+
Conventional Commits start with one of the below types, followed by a colon,
53+
followed by the commit message:
5254
5355
build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
5456

conventional-pre-commit.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
if ! grep -Pq '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w][\w -]+\))?!?: [\w][\s\S]+$' "$1"; then
44
echo "[Commit message] $( cat $1 )"
55
echo "
6-
Your commit message doesn't look like a Conventional Commit https://www.conventionalcommits.org/
6+
Your commit message does not follow Conventional Commits formatting
7+
https://www.conventionalcommits.org/
78
8-
Conventional Commits start with one of the below types, followed by a colon, followed by the commit message:
9+
Conventional Commits start with one of the below types, followed by a colon,
10+
followed by the commit message:
911
1012
build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
1113

0 commit comments

Comments
 (0)