commitizen/cz-conventional-changelog
حول
A commitizen adapter for the angular preset of https://github.com/conventional-changelog/conventional-changelog
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- -١
- خلال شهر
- ٠
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلcz-conventional-changelog
Part of the commitizen family. Prompts for conventional changelog standard.
Requires Node.js 22.23.5+, 24.22.3+ or 26.13.1+: the November 2026 security releases, which also include the fix for Node2Shell (CVE-2026-111497). Tested against Node.js 22, 24 and 26. Use the latest release of your line.
The package is an ES module. CommonJS code can still load it with require(),
which returns { prompter } as before, and require('cz-conventional-changelog/engine')
still returns the engine function.
Configuration
package.json
Like commitizen, you specify the configuration of cz-conventional-changelog through the package.json's config.commitizen key.
{
// ... default values
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog",
"disableScopeLowerCase": false,
"disableSubjectLowerCase": false,
"maxHeaderWidth": 100,
"maxLineWidth": 100,
"defaultType": "",
"defaultScope": "",
"defaultSubject": "",
"defaultBody": "",
"defaultIssues": "",
"types": {
...
"feat": {
"description": "A new feature",
"title": "Features"
},
...
}
}
}
// ...
}
Environment variables
The following environment variables can be used to override any default configuration or package.json based configuration.
- CZ_TYPE = defaultType
- CZ_SCOPE = defaultScope
- CZ_SUBJECT = defaultSubject
- CZ_BODY = defaultBody
- CZ_MAX_HEADER_WIDTH = maxHeaderWidth
- CZ_MAX_LINE_WIDTH = maxLineWidth
Commitlint
If using the commitlint js library, the "maxHeaderWidth" configuration property will default to the configuration of the "header-max-length" rule instead of the hard coded value of 100. This can be ovewritten by setting the 'maxHeaderWidth' configuration in package.json or the CZ_MAX_HEADER_WIDTH environment variable.
Development
You need the latest Node.js 22, 24 or 26, and pnpm 12.
The exact pnpm version is pinned in the packageManager field of package.json.
pnpm install
pnpm test
Releasing
Releases are automated with semantic-release, but nothing reaches npm without a maintainer's approval:
Every push to
masterruns the release workflow. If there arefix,feator breaking-change commits since the last release, it tags the new version, creates a draft GitHub release, and stages the package on npm withnpm stage publish. A staged version can't be installed yet.A maintainer reviews the staged version and approves it, which prompts for 2FA:
npm stage list cz-conventional-changelog npm stage download <stage-id> # optional: inspect the tarball npm stage approve <stage-id>To discard it instead, run
npm stage reject <stage-id>, then delete the tag and the draft GitHub release.Publish the draft GitHub release.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…