Gathering detailed insights and metrics for git-cz
Gathering detailed insights and metrics for git-cz
Gathering detailed insights and metrics for git-cz
Gathering detailed insights and metrics for git-cz
cz-git
A better customizable and git support commitizen adapter
czg
Interactive Commitizen CLI that generate standardized git commit message
@cz-git/loader
commitizen and commitlint configure loader for cz-git
@cz-git/inquirer
provide cz-git inquirer plugins, include search-list, search-checkbox, complete-input
npm install git-cz
Typescript
Module System
Node Version
NPM Version
99.5
Supply Chain
100
Quality
75.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
14,009,541
Last Day
9,861
Last Week
66,878
Last Month
315,478
Last Year
3,731,002
1,739 Stars
656 Commits
107 Forks
11 Watching
37 Branches
27 Contributors
Minified
Minified + Gzipped
Latest Version
4.9.0
Package Id
git-cz@4.9.0
Unpacked Size
145.63 MB
Size
51.04 MB
File Count
14
NPM Version
8.3.1
Node Version
16.15.0
Cumulative downloads
Total Downloads
Last day
-25.2%
9,861
Compared to previous day
Last week
3.2%
66,878
Compared to previous week
Last month
-13.2%
315,478
Compared to previous month
Last year
-0.4%
3,731,002
Compared to previous year
30
1npx git-cz 2# or 3npx git-cz -e
1npm install -g git-cz 2git-cz 3# or 4git-cz -e
1npm install -g commitizen 2npm install --save-dev git-cz
package.json
:
1{ 2 "config": { 3 "commitizen": { 4 "path": "git-cz" 5 } 6 } 7}
run:
1git cz
1npm install -g commitizen git-cz 2commitizen init git-cz --save-dev --save-exact
run:
1git cz
You can provide a custom configuration in a changelog.config.js
file in your repo, or in any parent folder.
git-cz will search for the closest config file.
Below is default config:
1module.exports = { 2 disableEmoji: false, 3 format: '{type}{scope}: {emoji}{subject}', 4 list: ['test', 'feat', 'fix', 'chore', 'docs', 'refactor', 'style', 'ci', 'perf'], 5 maxMessageLength: 64, 6 minMessageLength: 3, 7 questions: ['type', 'scope', 'subject', 'body', 'breaking', 'issues', 'lerna'], 8 scopes: [], 9 types: { 10 chore: { 11 description: 'Build process or auxiliary tool changes', 12 emoji: '🤖', 13 value: 'chore' 14 }, 15 ci: { 16 description: 'CI related changes', 17 emoji: '🎡', 18 value: 'ci' 19 }, 20 docs: { 21 description: 'Documentation only changes', 22 emoji: '✏️', 23 value: 'docs' 24 }, 25 feat: { 26 description: 'A new feature', 27 emoji: '🎸', 28 value: 'feat' 29 }, 30 fix: { 31 description: 'A bug fix', 32 emoji: '🐛', 33 value: 'fix' 34 }, 35 perf: { 36 description: 'A code change that improves performance', 37 emoji: '⚡️', 38 value: 'perf' 39 }, 40 refactor: { 41 description: 'A code change that neither fixes a bug or adds a feature', 42 emoji: '💡', 43 value: 'refactor' 44 }, 45 release: { 46 description: 'Create a release commit', 47 emoji: '🏹', 48 value: 'release' 49 }, 50 style: { 51 description: 'Markup, white-space, formatting, missing semi-colons...', 52 emoji: '💄', 53 value: 'style' 54 }, 55 test: { 56 description: 'Adding missing tests', 57 emoji: '💍', 58 value: 'test' 59 }, 60 messages: { 61 type: 'Select the type of change that you\'re committing:', 62 customScope: 'Select the scope this component affects:', 63 subject: 'Write a short, imperative mood description of the change:\n', 64 body: 'Provide a longer description of the change:\n ', 65 breaking: 'List any breaking changes:\n', 66 footer: 'Issues this commit closes, e.g #123:', 67 confirmCommit: 'The packages that this commit has affected\n', 68 }, 69 } 70};
Using --non-interactive
flag you can run git-cz
non-interactive mode.
For example:
1git-cz --non-interactive --type=feat --subject="add onClick prop to component"
CLI parameters:
--type
--subject
--scope
--body
--breaking
--issues
--lerna
Using --disable-emoji
flag will disable emoji.
For example:
1git-cz --disable-emoji
1<type>[(<scope>)]: <emoji> <subject> 2[BLANK LINE] 3[body] 4[BLANK LINE] 5[breaking changes] 6[BLANK LINE] 7[footer]
The header is the only mandatory part of the commit message.
The first line (type + subject) is limited to 50 characters [enforced]
Any other line should be limited to 72 character [automatic wrapping]
This allows the message to be easier to read on GitHub as well as in various git tools.
By default the subject format is: {type}{scope}: {subject}
Configuring the format
field in .git-cz.json
you can customize your own:
{type}{scope}: {emoji}{subject}
{emoji}{scope} {subject}
Must be one of the following:
test
— Adding missing testsfeat
— A new featurefix
— A bug fixchore
— Build process or auxiliary tool changesdocs
— Documentation only changesrefactor
— A code change that neither fixes a bug or adds a featurestyle
— Markup, white-space, formatting, missing semi-colons...ci
— CI related changesperf
— A code change that improves performanceThe subject contains succinct description of the change:
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
Select the packages the commit affected.
Breaking Changes must start with the words BREAKING CHANGE:
.
The footer is the place to reference any tasks related to this commit.
1npm i -g git-cz 2added 1 package in 0.612s
Installs in 0.6s vs 31.1s.
1npm i -g mol-conventional-changelog 2added 345 packages in 31.076s
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
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
44 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