CommitWatch checks commit messages and ensures they're formatted based on your config preferences.
Install the CommitWatch package:
- NPM: npm install commit-watch --save-dev
- Yarn: yarn add commit-watch --dev
You will need to give CommitWatch access to your GitHub Statuses, which can by clicking HERE and copying the code from the URL.
This will give you your COMMITWATCH_GITHUB_TOKEN. You will need to set this as an environment variable in CI.
CI Variables Needed by CommitWatch:
The most efficient way to get this running is to ensure that some environment variables are available for CommitWatch to find.
In your CI run node ./node_modules/.bin/commit-watch