diff --git a/renovate.json b/renovate.json deleted file mode 100644 index f56767ea0..000000000 --- a/renovate.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended" - ], - "timezone": "Asia/Tokyo", - "packageRules": [ - { - "groupSlug": "rust", - "groupName": "Rust", - "matchPackagePatterns": [ - "^rust-lang/rust$" - ] - }, - { - "groupSlug": "others", - "groupName": "Others", - "matchPackagePatterns": [ - "*" - ], - "excludePackagePatterns": [ - "^rust-lang/rust$" - ], - "dependencyDashboardApproval": true - } - ], - "customManagers": [ - { - "customType": "regex", - "fileMatch": [ - "^rust-toolchain$" - ], - "matchStrings": [ - "(?\\d+\\.\\d+\\.\\d+)" - ], - "depNameTemplate": "Rust", - "packageNameTemplate": "rust-lang/rust", - "datasourceTemplate": "github-tags" - } - ] -} diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 000000000..ae4e76c7a --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,78 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "timezone": "Asia/Tokyo", + "separateMajorMinor": false, + "dependencyDashboardApproval": true, // 万が一`packageRules`の網羅性に穴ができた場合に備え + "packageRules": [ + { + "groupName": "major dependencies", + "matchUpdateTypes": [ + "major" + ], + "dependencyDashboardApproval": false + }, + { + "groupName": "major dependencies", + "matchUpdateTypes": [ + "minor" + ], + "matchCurrentVersion": "/^0\\./", + "dependencyDashboardApproval": false + }, + { + "groupName": "major dependencies", + "matchUpdateTypes": [ + "patch" + ], + "matchCurrentVersion": "/^0\\.0\\./", + "dependencyDashboardApproval": false + }, + { + "groupName": "non-major dependencies", + "matchUpdateTypes": [ + "minor" + ], + "matchCurrentVersion": "!/^0\\./", + "dependencyDashboardApproval": false + }, + { + "groupName": "non-major dependencies", + "matchUpdateTypes": [ + "patch" + ], + "matchCurrentVersion": "!/^0\\.0\\./", + "dependencyDashboardApproval": false + }, + { + "matchDatasources": [ + "github-runners" + ], + "matchPackageNames": [ + "windows", + "macos", + "ubuntu" + ], + "enabled": false + } + ], + "cargo": { + "rangeStrategy": "bump" + }, + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^rust-toolchain$" + ], + "matchStrings": [ + "(?\\d+\\.\\d+\\.\\d+)" + ], + "depNameTemplate": "Rust", + "packageNameTemplate": "rust-lang/rust", + "datasourceTemplate": "github-tags" + } + ] +}