Build
cargo build --releaseUse in bash
./target/release/api-iota-streamsSimply use git cz or just cz instead of git commit when committing. You can also use git-cz, which is an alias for cz.
For this example, we'll be setting up our repo to use AngularJS's commit message convention also known as conventional-changelog.
First, install the Commitizen cli tools:
npm install commitizen -gNext, initialize your project to use the cz-conventional-changelog adapter by typing:
commitizen init cz-conventional-changelog --save-dev --save-exactOr if you are using Yarn:
commitizen init cz-conventional-changelog --yarn --dev --exactThe above command does three things for you.
- Installs the cz-conventional-changelog adapter npm module
- Saves it to package.json's dependencies or devDependencies
- Adds the
config.commitizenkey to the root of your package.json as shown here:
...
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}Alternatively, commitizen configs may be added to a .czrc file:
{
"path": "cz-conventional-changelog"
}This just tells Commitizen which adapter we actually want our contributors to use when they try to commit to this repo.