Skip to content

Commit a6cde27

Browse files
authored
Add commitizen to repo to make it easy to follow conventional-commits (#6844)
1 parent 98c06c1 commit a6cde27

File tree

6 files changed

+850
-6
lines changed

6 files changed

+850
-6
lines changed

.cz.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"path": "./node_modules/cz-conventional-changelog",
3+
"disableSubjectLowerCase": true
4+
}

.husky/prepare-commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
exec < /dev/tty && npx cz --hook || true

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ for getting things done and landing your contribution.
114114
```bash
115115
cd ~/nodejs.org
116116
git add .
117-
git commit -m "some message"
117+
git commit #let commitizen handle the commit
118118
git push -u origin name-of-your-branch
119119
```
120120

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
<a title="scorecard" href="https://securityscorecards.dev/viewer/?uri=github.com/nodejs/nodejs.org">
3131
<img src="https://api.securityscorecards.dev/projects/github.com/nodejs/nodejs.org/badge" alt="nodejs.org scorecard badge" />
3232
</a>
33+
<a href="http://commitizen.github.io/cz-cli/" alt="Commitizen friendly">
34+
<img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg">
35+
</a>
3336
<br />
3437
<br />
3538
</p>

0 commit comments

Comments
 (0)