我使用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 }
}
答案 0 :(得分:0)
您必须指定要自动合并的更新类型。这是来自文档的示例:
{
"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
}
]
}