美文网首页
CHANGELOG.md 配置

CHANGELOG.md 配置

作者: _海角_ | 来源:发表于2022-02-22 17:30 被阅读0次

    CHANGELOG.md 配置
    默认情况下,standard-version 只会在 CHANGELOG.md 中记录 feat 和 fix 类型的提交。如果想记录其他类型的提交,需要如下步骤:

    在项目的根目录下创建一个名为 .versionrc 的文件,并粘贴复制一下内容:

    {
      "types": [
        {"type": "chore", "section":"Others", "hidden": false},
        {"type": "revert", "section":"Reverts", "hidden": false},
        {"type": "feat", "section": "Features", "hidden": false},
        {"type": "fix", "section": "Bug Fixes", "hidden": false},
        {"type": "improvement", "section": "Feature Improvements", "hidden": false},
        {"type": "docs", "section":"Docs", "hidden": false},
        {"type": "style", "section":"Styling", "hidden": false},
        {"type": "refactor", "section":"Code Refactoring", "hidden": false},
        {"type": "perf", "section":"Performance Improvements", "hidden": false},
        {"type": "test", "section":"Tests", "hidden": false},
        {"type": "build", "section":"Build System", "hidden": false},
        {"type": "ci", "section":"CI", "hidden":false}
      ]
    }
    

    "type" commit 类型
    "section" 不同的 commit 类型所在 CHANGELOG.md 中的区域
    "hidden" 是否在 CHANGELOG.md 中显示

    相关文章

      网友评论

          本文标题:CHANGELOG.md 配置

          本文链接:https://www.haomeiwen.com/subject/favglrtx.html