Renovateの設定ファイルはかなり柔軟に設定できるのはいいんだが、あってるかどうかの検証したい
調べるとvalidatorがあったのでこれを使ってみる
docs.renovatebot.com
このコマンドでインストールせず実行が可能
$ npx --package renovate -c 'renovate-config-validator'
結果、WARNが2つ
INFO: Validating .github/renovate.json
WARN: Config migration necessary
"oldConfig": {
"commitMessagePrefix": "⬆️(deps): ",
"labels": ["deps", "skip-auto-update"],
"extends": ["config:base", ":automergePatch", ":preserveSemverRanges"],
"schedule": "before 8am on Monday",
"lockFileMaintenance": {
"enabled": true,
"schedule": ["before 3am on the first day of the month"],
"extends": ["group:all"]
},
"statusCheckVerify": true,
"timezone": "Asia/Tokyo"
},
"newConfig": {
"commitMessagePrefix": "⬆️(deps): ",
"labels": ["deps", "skip-auto-update"],
"extends": ["config:base", ":automergePatch", ":preserveSemverRanges"],
"schedule": "before 8am on Monday",
"lockFileMaintenance": {
"enabled": true,
"schedule": ["before 3am on the first day of the month"],
"extends": ["group:all"]
},
"timezone": "Asia/Tokyo"
}
WARN: .github/renovate.json contains warnings
"warnings": [
{
"topic": "Configuration Warning",
"message": "lockFileMaintenance.extends: you should not extend \"group:\" presets"
}
]
1つ目はstatusCheckVerifyが不要だったみたい
何かで拾ってきたままになっていたが、公式docにはなかったので削除する
2つ目はlockFileMaintenanceのextends中でgroup:のプレフィックスを付けるべきではないとのこと
これも何か拾ってきたままなのか、すべてひとまとめにするつもりでつけていたが不要みたいなので削除した