Gathering detailed insights and metrics for cz-customizable-ghooks
Gathering detailed insights and metrics for cz-customizable-ghooks
Gathering detailed insights and metrics for cz-customizable-ghooks
Gathering detailed insights and metrics for cz-customizable-ghooks
npm install cz-customizable-ghooks
Typescript
Module System
Min. Node Version
Node Version
NPM Version
88.9
Supply Chain
99.5
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,070,918
Last Day
1,077
Last Week
9,859
Last Month
54,922
Last Year
265,904
20 Stars
51 Commits
13 Forks
2 Watching
20 Branches
6 Contributors
Latest Version
2.0.0
Package Id
cz-customizable-ghooks@2.0.0
Size
12.03 kB
NPM Version
6.14.8
Node Version
10.22.0
Publised On
28 Aug 2020
Cumulative downloads
Total Downloads
Last day
-59.2%
1,077
Compared to previous day
Last week
-27.9%
9,859
Compared to previous week
Last month
52.8%
54,922
Compared to previous month
Last year
31.8%
265,904
Compared to previous year
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/12 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
50 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More