Skip to content

Commit

Permalink
Add commitizen to repo to make it easy to follow conventional-commits (
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhall1515 authored Jun 21, 2024
1 parent 98c06c1 commit a6cde27
Show file tree
Hide file tree
Showing 6 changed files with 850 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"path": "./node_modules/cz-conventional-changelog",
"disableSubjectLowerCase": true
}
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec < /dev/tty && npx cz --hook || true
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ for getting things done and landing your contribution.
```bash
cd ~/nodejs.org
git add .
git commit -m "some message"
git commit #let commitizen handle the commit
git push -u origin name-of-your-branch
```

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<a title="scorecard" href="https://securityscorecards.dev/viewer/?uri=github.com/nodejs/nodejs.org">
<img src="https://api.securityscorecards.dev/projects/github.com/nodejs/nodejs.org/badge" alt="nodejs.org scorecard badge" />
</a>
<a href="http://commitizen.github.io/cz-cli/" alt="Commitizen friendly">
<img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg">
</a>
<br />
<br />
</p>
Expand Down
Loading

0 comments on commit a6cde27

Please sign in to comment.