
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
commit-msg-checker
Advanced tools
校验git commit message 是否符合规范,需要Node 8 及以上版本
默认的commit message规范为(): 说明如下
feat:新功能
fix:修复缺陷
docs:文档
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动
ci:CI工具相关变动
build:构建
perf:优化相关的变动
例如docs(README):update changelog和fix:fix issue-3都是符合规范的commit message
npm i commit-msg-checker -D
在工程根目录下执行checker-init即可为项目添加检查
也可以在package.json中添加自定义配置
//package.json
{
...
"msgChecker":{
"ignore": "^v([1-9])", // 配置此项可忽略某些提交信息(lerna自动发包信息)
"reg": "/\s/", // 配置此项可以自定义用于校验的正则表达式
"check":true // 可以通过将此项设置为false以关闭检查器
}
...
}
FAQs
校验git commit message 是否符合规范,需要Node 8 及以上版本
We found that commit-msg-checker 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.