0

我正在使用 Bitbucket Cloud,并且使用管道可以很好地工作,除了在发布/标记提交后我总是得到一个额外的提交,如下所示:

Notes added by 'git notes add'- 作者:semantic-release-bot

有没有办法避免这种情况?

这是我的配置:

    "release": {
        "plugins": [
            "@semantic-release/commit-analyzer",
            [
                "@semantic-release/changelog",
                {
                    "changelogFile": "CHANGELOG.md"
                }
            ],
            [
                "@semantic-release/npm",
                {
                    "npmPublish": false
                }
            ],
            [
                "@semantic-release/git",
                {
                    "assets": ["CHANGELOG.md"]
                }
            ]
        ]
    },
4

1 回答 1

1

@Sammy - 您是否尝试为提交设置消息?Bitbucket 建议在管道中使用 [skip ci]

      {
        "path": "@semantic-release/git",
        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
      }
于 2021-10-07T08:41:01.230 回答