I use Renovate for update 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
}
]
}