From 90aaa65331b1c9a0408cc3b5800ef06f2e8ac49c Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Thu, 26 Sep 2024 15:48:06 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=81=99=E3=81=B9=E3=81=A6=E3=81=AE?= =?UTF-8?q?=E4=BE=9D=E5=AD=98=E3=82=92Renovate=E3=81=AE=E5=AF=BE=E8=B1=A1?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- renovate.json | 41 -------------------------- renovate.json5 | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 41 deletions(-) delete mode 100644 renovate.json create mode 100644 renovate.json5 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..1a6fdcb67 --- /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": "/^v?0\\./", + "dependencyDashboardApproval": false + }, + { + "groupName": "major dependencies", + "matchUpdateTypes": [ + "patch" + ], + "matchCurrentVersion": "/^v?0\\.0\\./", + "dependencyDashboardApproval": false + }, + { + "groupName": "non-major dependencies", + "matchUpdateTypes": [ + "minor" + ], + "matchCurrentVersion": "!/^v?0\\./", + "dependencyDashboardApproval": false + }, + { + "groupName": "non-major dependencies", + "matchUpdateTypes": [ + "patch" + ], + "matchCurrentVersion": "!/^v?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" + } + ] +}