2.3.0 • Published 5 years ago

cz-conventional-changelog-chinese v2.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

cz-conventional-changelog-chinese

中文版的cz-conventional-changelog,对中文开发者友好。

Status: Build Status npm npm npm

这是一个 format git commit message 的库,本项目仅仅是作为翻译和集成。

食用本项目后可以使用yarn commit来格式化提交的commit message,方便生成CHANGELOG,或者生成Tag的时候的简述。

感谢

首先感谢原作者,感谢angularJS。

安装

yarn add -D commitizen cz-conventional-changelog-chinese

# add config to package.json

  "scripts": {
    "commit": "git-cz"
  },
  "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog-chinese"
    }
  },

# 和 husky hooks 一起食用更佳

配置

已下类型可设置为环境变量的默认提交内容:

process.env = {
  CZ_TYPE,
  CZ_SCOPE,
  CZ_SUBJECT,
  CZ_BODY,
  CZ_ISSUES,
}

License

MIT