From 2c5b7a922159d2c3f46f41dc62bd483d413fb7e1 Mon Sep 17 00:00:00 2001 From: relrelb Date: Thu, 23 Feb 2023 12:38:20 +0200 Subject: [PATCH] chore: Improve Renovate config * Move under `.github/` to reduce amount of top-level files. * Convert to JSON5 to allow comments and trailing commans. * Include `js-sys` and `web-sys` in `wasm-bindgen` group. --- .github/renovate.json5 | 37 +++++++++++++++++++++++++++++++++++++ renovate.json | 36 ------------------------------------ 2 files changed, 37 insertions(+), 36 deletions(-) create mode 100644 .github/renovate.json5 delete mode 100644 renovate.json diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 000000000..155aa3042 --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,37 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base"], + // Package rules are matched such that later rules override earlier ones. + "packageRules": [ + { + "matchLanguages": ["rust"], + "matchUpdateTypes": "patch", + "groupName": "Rust dependency patches", + "extends": ["schedule:weekly"], + }, + { + "matchLanguages": ["rust"], + "groupName": "Rust dependencies", + "extends": ["schedule:weekly"], + }, + { + "matchPackageNames": ["wasm-bindgen", "js-sys", "web-sys", "wasm-bindgen-futures"], + "groupName": "wasm-bindgen", + }, + // Disable `tracing-tracy` updates (needed although it's pinned in `desktop/Cargo.toml`). + { + "matchPackageNames": ["tracing-tracy"], + "enabled": false, + }, + { + "matchLanguages": ["js"], + "groupName": "Node.js dependencies", + "extends": ["schedule:monthly"], + }, + { + "matchManagers": ["github-actions"], + "groupName": "Github Actions dependencies", + "extends": ["schedule:monthly"], + }, + ] +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index c65967a60..000000000 --- a/renovate.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ], - "packageRules": [ - { - "matchLanguages": ["rust"], - "matchUpdateTypes": "patch", - "groupName": "Rust dependency patches", - "extends": ["schedule:weekly"] - }, - { - "matchLanguages": ["rust"], - "extends": ["schedule:weekly"] - }, - { - "matchPackageNames": ["wasm-bindgen", "wasm-bindgen-futures"], - "groupName": "Rust dependencies - wasm-bindgen related" - }, - { - "matchLanguages": ["js"], - "groupName": "Node.js dependencies", - "extends": ["schedule:monthly"] - }, - { - "matchManagers": ["github-actions"], - "groupName": "Github Actions dependencies", - "extends": ["schedule:monthly"] - }, - { - "matchPackageNames": ["tracing-tracy"], - "enabled": false - } - ] -}