Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
cz-customizable-ghooks
Advanced tools
Integrate [cz-customizable](https://github.com/leoforfree/cz-customizable) config with [ghooks](https://github.com/gtramontina/ghooks) or [husky](https://github.com/typicode/husky) to use a single configuration for commit message generation AND commit mes
Integrate cz-customizable config with ghooks or husky to use a single configuration for commit message generation AND commit message validation.
This package validates that a git commit message matches the rules defined in your cz-customizable
config file (see cz-customizable).
Example commit message rules.
Make sure you have a git repository (git init
) BEFORE installing ghooks, otherwise you have to take extra steps if you install ghooks before running git init
.
This package is designed to be used in conjunction with commitizen
, cz-customizable
and either ghooks
or husky
.
npm i commitizen -g
npm i cz-customizable cz-customizable-ghooks
package.json
:"config": {
"cz-customizable": {
"config": "path/to/your/cz-customizable-rules.js"
}
}
npm i ghooks
package.json
:"config": {
"ghooks": {
"commit-msg": "cz-customizable-ghooks $2"
}
}
An example of this setup is in examples/ghooks
.
npm i husky
package.json
: "husky": {
"hooks": {
"commitmsg": "cz-customizable-ghooks"
}
}
An example of this setup is in examples/husky
.
Commit your changes to git as normal. If the commit message entered is invalid, the commit will be rejected with an error message (according to the rules specified in your cz-customizable config). Works with git command-line and visual Git tools (such as SourceTree).
appendIssueFromBranchName
If this config value is set to true, the git branch name is queried, and an attempt is made to
parse the branch name, looking for the ticketNumberPrefix
and ticketNumberRegExp
values. If found,
they are appended to the commit message. If the branch name does not match the ticketNumberPrefix
and ticketNumberRegExp
expression, or if ticketNumberPrefix
and ticketNumberRegExp
are not provided,
the full branch name is appended to the commit message.
This property was previously called appendBranchNameToCommitMessage
.
You can turn on debug logging by specifying LOGGING_LEVEL=debug
before the cz-customizable-ghooks
command.
FAQs
Integrate [cz-customizable](https://github.com/leoforfree/cz-customizable) config with [ghooks](https://github.com/gtramontina/ghooks) or [husky](https://github.com/typicode/husky) to use a single configuration for commit message generation AND commit mes
The npm package cz-customizable-ghooks receives a total of 8,721 weekly downloads. As such, cz-customizable-ghooks popularity was classified as popular.
We found that cz-customizable-ghooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.