0

谁能给我们一个提示,@semantic-release/release-notes-generator在生成发行说明时如何配置以采用额外的提交类型(那些附加到预设的提交类型)?

我们的提交分析器配置:

    "@semantic-release/commit-analyzer",
    {
      "preset": "angular",
      "releaseRules": [
        {
          "type": "refactor",
          "release": "patch"
        },
        {
          "type": "minfeat",
          "release": "patch"
        }
      ]
    }

目前我们没有额外的配置@semantic-release/release-notes-generator,当然它需要一些配置,因为新类型不会出现@semantic-release/changelog在 release-notes-generator 运行后生成的变更日志中

4

1 回答 1

0

为了处理这些新的提交类型,您必须实现自己的常规更改日志预设。

例如,默认角度预设仅处理某些提交类型:https ://github.com/conventional-changelog/conventional-changelog/blob/e865af4df8d06795cebc7af09364ade19119e089/packages/conventional-changelog-angular/writer-opts.js#L36

于 2019-11-01T02:28:19.280 回答