1

我使用 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 }
}
4

1 回答 1

1

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

{
  "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
        }
      ]
}
于 2020-04-14T09:22:42.600 回答