From 50f17876a653c6383c2a284423f9e3c694392474 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Wed, 2 Oct 2024 22:13:14 +0900 Subject: [PATCH] ci: set up Renovate (#7) --- renovate.json | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..bf59ea4 --- /dev/null +++ b/renovate.json @@ -0,0 +1,90 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "timezone": "Asia/Tokyo", + "separateMajorMinor": false, + "dependencyDashboardApproval": true, + "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" + }, + { + "customType": "regex", + "fileMatch": [ + "Cargo.toml$" + ], + "matchStrings": [ + "rust-version = \"(?\\d+\\.\\d+\\.\\d+)\"" + ], + "depNameTemplate": "Rust", + "packageNameTemplate": "rust-lang/rust", + "datasourceTemplate": "github-tags" + } + ] +}