Gathering detailed insights and metrics for semantic-commitlint
Gathering detailed insights and metrics for semantic-commitlint
Gathering detailed insights and metrics for semantic-commitlint
Gathering detailed insights and metrics for semantic-commitlint
@mixmaxhq/semantic-commitlint
Fills the gap between semantic-release and commitlint
@xerox/commitlint-config
semantic-release shareable config for Xerox projects
semantic-release-commitlint
Plugin for validating commit message formats
commitlint-plugin-semantic-commit-emoji
Plugin for commitlint parser compatible with semantic-commit-emoji
📦🚀 + 📓 A continuous integration build tool to ensure all new commits meet your commit message format! ️️
npm install semantic-commitlint
Typescript
Module System
Node Version
NPM Version
TypeScript (89%)
JavaScript (11%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
23 Commits
2 Forks
1 Watchers
13 Branches
2 Contributors
Updated on Oct 26, 2024
Latest Version
1.4.0
Package Id
semantic-commitlint@1.4.0
Unpacked Size
146.80 kB
Size
43.57 kB
File Count
22
NPM Version
5.6.0
Node Version
8.9.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
📦🚀 + 📓 A continuous integration build tool to ensure all new commits meet your commit message format! ️️
1npm install semantic-commitlint --save-dev
Add the following to your package.json
1{ 2 "scripts": { 3 "semantic-commitlint": "semantic-commitlint", 4 "semantic-release": "semantic-release" 5 }, 6 "release": { 7 "verifyRelease": ["semantic-commitlint"] 8 } 9}
Setup semantic-release authentication for CI
Add the following commands to your CI build process
1npm run semantic-commitlint -- --ci 2npm run semantic-release
To get early feedback on commit messages you can add the following to a commit hook or your regular set of tests.
1npm run semantic-commitlint
This allows your project's contributors to get early feedback on their last commit message instead of waiting for CI to fail a build.
If there are unreleased commits that shouldn't fail a build, then add them to your package.json
inside the semanticCommitlint
config.
1{ 2 "semanticCommitlint": { 3 "skipCommits": ["a1be371"] 4 } 5}
To add a custom lint function add your function's path in package.json
.
1{ 2 "semanticCommitlint": { 3 "lintFunctions": ["./my-function.js"] 4 } 5}
The function itself works like this:
1// my-function.js 2function customValidation(commitMessage, report) { 3 if (commitMessage.includes('something bad')) { 4 report.valid = false; 5 report.errors.push({ 6 level: 2, 7 valid: false, 8 name: 'type-bad', 9 message: 'Commit message should have been better!' 10 }); 11 } 12} 13 14module.exports = customValidation;
This project just ties together some functionality from two external projects. For all other config options make sure to read through the docs.
You can prevent invalid commit messages from every being created by using Git hooks!
1npm install --save-dev husky@next
package.json
1{ 2 "husky": { 3 "hooks": { 4 "prepare-commit-msg": "npm run semantic-commitlint -- -h" 5 } 6 } 7}
Not all features implemented in semantic-release and commitlint are currently available when using semantic-commtlint. If you have a suggestion, please open an issue. Thanks!
semantic-commitlint is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/23 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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