<textarea required>
git commit -m "fix"
git commit -m "updated"
git commit -m "clean up"
Snark
Missing information
Placeholder messages
type(scope?): subject
chore: run tests on travis ci
fix(server): send cors headers
chore: run tests on travis ci
fix(server): send cors headers
type(scope?): subject
type(scope?): subject
chore: run tests on travis ci
fix(server): send cors headers
type(scope?): subject
type(scope?): subject
chore: run tests on travis ci
fix(server): send cors headers
type(scope?): subject
type(scope?): subject
BREAKING CHANGE Major release
feat: Minor release
fix: Patch Release
other Patch/No Release
// commitlint.config.js
module.exports = {
extends: ['angular'],
rules: {
'scope-enum': [
2,
'always',
['server', 'client']
]
}
};
echo "fix: send cors headers" | npx commitlint
✔ found 0 problems, 0 warnings
echo "fix(server): send cors headers" | npx commitlint
✔ found 0 problems, 0 warnings
echo "fix(foo): some message" | npx commitlint
✖ scope must be one of [server, client] [scope-enum]
✖ found 1 problems, 0 warnings