Skip to content

Commit

Permalink
Merge pull request #399 from schalkneethling/issue-398-add-docs-cz
Browse files Browse the repository at this point in the history
fix(docs): add cz-cli docs
  • Loading branch information
Schalk Neethling authored Jan 15, 2020
2 parents 260f00d + d0288e9 commit 01cac6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ Builder of Bits aka The [MDN Web Docs interactive examples](https://github.com/m
|----> js # All JS examples
|----> tabbed # All examples using the tabbed UI
```

## Using Commitizen CLI

This project uses Commitizen to ensure all pull requests follow the same format, and to ensure predictable releases with semantic-release.

To use this flow, add files as you normally would with `git add .`, and when you are ready to commit, simply type `git commit` and follow the prompts.
You can [read more on the Conventional Changelog format](https://github.com/conventional-changelog/conventional-changelog) on its repository.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,10 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
}
}
}

0 comments on commit 01cac6f

Please sign in to comment.