From 743fef8947d82a509a6d81cba3c71fd001139ae4 Mon Sep 17 00:00:00 2001 From: Lapotor <17144397+Lapotor@users.noreply.github.com> Date: Wed, 6 Dec 2023 04:49:09 +0100 Subject: [PATCH] chore(renovate): restrict major PHP updates, mandate approval for minors (#51) This enforces a versioning policy for PHP updates via renovatebot. It disallows major updates and mandates approval for minor updates. This ensures tighter control over PHP version changes, enhancing our maintenance and compatibility standards. Signed-off-by: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> --- renovate.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 34edabdc..589e3952 100644 --- a/renovate.json +++ b/renovate.json @@ -17,9 +17,21 @@ "reviewers": ["@lapotor", "@whyauthentic"], "packageRules": [ { - "description": "Disable major and minor updates for PHP", + "description": "Allow ranges for PHP", "matchPackageNames": "php", "rangeStrategy": "auto" + }, + { + "description": "Require approval for minor updates on PHP", + "matchPackageNames": "php", + "matchUpdateTypes": ["minor"], + "dependencyDashboardApproval": true + }, + { + "description": "Disallow major updates for PHP", + "matchPackageNames": "php", + "matchUpdateTypes": ["major"], + "enabled": false } ] }