commitlint-plugin-spend
v1.0.1
Published
A commitlint plugin that requires the GitLab /spend or /spend_time directive in commit messages
Downloads
38
Maintainers
Readme
commitlint-plugin-spend
Commitlint plugin to enforce the use of spend directives in commit messages.
Available rules
spend
- condition:
body
ends with a valid spend directive - rule:
always
Usage
- Install the plugin:
npm i -D commitlint-plugin-spend
yarn add -D commitlint-plugin-spend
pnpm add -D commitlint-plugin-spend
bun add -d commitlint-plugin-spend
- Add the plugin to your
commitlint
configuration:
{
"extends": ["@commitlint/config-conventional"],
"plugins": ["commitlint-plugin-spend"]
}
- Configure the
spend
rule in yourcommitlint
configuration:
{
"rules": {
"spend": [2, "always"]
}
}