翻新配置 "automerge" 无法工作

Renovate config "automerge" could not work

我使用 Renovate 进行更新 package.json

参考资料:

这是我的 renovate.json 文件,但是 patch 指令不起作用,我现在必须手动合并它。 (schedule 指令有效)

{
  "extends": ["config:base"],
  "timezone": "Asia/Tokyo",
  "schedule": ["every weekend"],
  "patch": { "automerge": true }
}

我应该像下面这样设置吗?

{
  "automerge": true,
  "major": { "automerge": false },
  "minor": { "automerge": false }
}

您必须指定要自动合并的更新类型。这是文档中的示例:

{
  "packageRules": [
    {
      "updateTypes": ["minor", "patch", "pin", "digest"],
      "automerge": true
    }
  ]
}

示例来自:https://docs.renovatebot.com/configuration-options/#automerge

因此您的配置应如下所示:

{
  "extends": ["config:base"],
  "timezone": "Asia/Tokyo",
  "schedule": ["every weekend"],
  "packageRules": [
        {
          "updateTypes": ["patch", "pin", "digest"],
          "automerge": true
        }
      ]
}