From 0097b9c1f9f088a692762d82ead5598f1af83718 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 14 Nov 2026 11:58:12 -0500 Subject: [PATCH] fix(renovate): group Diesel Rust dependencies --- renovate/default.json5 | 1 + renovate/rust.json5 | 18 ++++++++++++++++++ tests/renovate-config.test.mjs | 16 ++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 renovate/rust.json5 diff --git a/renovate/default.json5 b/renovate/default.json5 index 56514af8..9cf921a8 100644 --- a/renovate/default.json5 +++ b/renovate/default.json5 @@ -17,6 +17,7 @@ "github>LizardByte/.github//renovate/npm.json5", "github>LizardByte/.github//renovate/cdn.json5", "github>LizardByte/.github//renovate/python.json5", + "github>LizardByte/.github//renovate/rust.json5", "github>LizardByte/.github//renovate/readthedocs.json5", "github>LizardByte/.github//renovate/cmake.json5", "github>LizardByte/.github//renovate/jekyll.json5", diff --git a/renovate/rust.json5 b/renovate/rust.json5 new file mode 100644 index 00000000..5f67681b --- /dev/null +++ b/renovate/rust.json5 @@ -0,0 +1,18 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Rust dependency groups", + "packageRules": [ + // Diesel migrations require a compatible Diesel minor release. + { + "groupName": "Diesel", + "matchManagers": [ + "cargo", + ], + "matchPackageNames": [ + "diesel", + "diesel_migrations", + ], + "separateMultipleMajor": false, + }, + ], +} diff --git a/tests/renovate-config.test.mjs b/tests/renovate-config.test.mjs index 45c0ff9a..c73ca4ff 100644 --- a/tests/renovate-config.test.mjs +++ b/tests/renovate-config.test.mjs @@ -904,6 +904,22 @@ test('preserves grouping and schedule overrides after resolving the split preset {packageName: 'jprm', categories: ['python']}, {groupName: 'jprm', separateMultipleMajor: false}, ], + [ + {packageName: 'diesel', manager: 'cargo', updateType: 'minor'}, + {groupName: 'Diesel', separateMultipleMajor: false}, + ], + [ + {packageName: 'diesel_migrations', manager: 'cargo', updateType: 'minor'}, + {groupName: 'Diesel', separateMultipleMajor: false}, + ], + [ + {packageName: 'diesel-async', manager: 'cargo', updateType: 'minor'}, + {groupName: undefined, separateMultipleMajor: true}, + ], + [ + {packageName: 'diesel', manager: 'npm', updateType: 'minor'}, + {groupName: undefined, separateMultipleMajor: true}, + ], ]) { const resolved = await applyPackageRules({ ...dependency,