Skip to content

Git 提交日志格式规约

sh
$ pnpm i -g git-cz
json
{
  "chore": {
    "description": "杂务:构建过程或辅助工具变更",
    "emoji": "🤖",
    "value": "chore"
  },
  "ci": {
    "description": "持续集成 相关修改",
    "emoji": "🎡",
    "value": "ci"
  },
  "docs": {
    "description": " 只修改了 文档/注释",
    "emoji": "✏️",
    "value": "docs"
  },
  "feat": {
    "description": "一个新的壮举",
    "emoji": "🎸",
    "value": "feat"
  },
  "fix": {
    "description": "修补了一些bug",
    "emoji": "🐛",
    "value": "fix"
  },
  "perf": {
    "description": "提高性能的代码更改",
    "emoji": "⚡️",
    "value": "perf"
  },
  "refactor": {
    "description": "重构:既不修复bug也不添加特性的代码更改",
    "emoji": "💡",
    "value": "refactor"
  },
  "release": {
    "description": "发布:创建一个发布的提交",
    "emoji": "🏹",
    "value": "release"
  },
  "style": {
    "description": "标记、空白、格式化、丢失的分号等等",
    "emoji": "💄",
    "value": "style"
  },
  "test": {
    "description": "添加缺失的测试",
    "emoji": "💍",
    "value": "test"
  }
}

自动生成周报

这个过程是快速和高效的,可以帮助你节省时间和精力,同时还能保证你的周报内容准确无误

安装 commit 工具

sh
$ npm i -g git-cz

执行

sh
# 日报
$ zerone log
# 周报
$ zerone log --since=6.days
# 月报
$ zerone log --since="2023-05-01 00:00:00" --until="2023-06-01 00:00:00"

An image

Released Under The MIT License.