From 15bb26937075537a8cb49d67786d137f4ae41cf3 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Mon, 19 Oct 2026 10:08:48 -0600 Subject: [PATCH] chore: keep Renovate on Go 1.26 --- renovate.json | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/renovate.json b/renovate.json index bfa4120..3dea854 100644 --- a/renovate.json +++ b/renovate.json @@ -4,19 +4,23 @@ "automerge": false, "automergeType": "pr", "automergeStrategy": "squash", - "pre-commit": { - "enabled": true - }, "dependencyDashboard": false, "prConcurrentLimit": 1, "platformAutomerge": true, "postUpdateOptions": ["gomodTidy"], - "packageRules": [ + "customManagers": [ { - "matchUpdateTypes": ["major"], - "automerge": false, - "prPriority": -1 - }, + "customType": "regex", + "description": "prek hook repositories in prek.toml (Renovate has no prek manager yet)", + "managerFilePatterns": ["/(^|/)prek\\.toml$/"], + "matchStrings": [ + "repo = \"https://github\\.com/(?[^\"]+)\"\\s+rev = \"(?[^\"]+)\"" + ], + "datasourceTemplate": "github-tags", + "versioningTemplate": "loose" + } + ], + "packageRules": [ { "matchUpdateTypes": ["minor", "patch"], "prPriority": 10 @@ -27,14 +31,29 @@ "prPriority": 5 }, { - "matchManagers": ["pre-commit"], + "matchManagers": ["custom.regex"], + "matchFileNames": ["prek.toml"], "automerge": true, "prPriority": 4 }, + { + "matchManagers": ["mise"], + "matchDatasources": ["github-tags"], + "matchPackageNames": ["golang/go"], + "matchFileNames": ["mise.toml"], + "allowedVersions": ">=1.26.0 <1.27.0", + "automerge": false, + "description": "keep the mise Go toolchain on the Go 1.26 major line" + }, { "matchManagers": ["gomod"], "automerge": true, "prPriority": 3 + }, + { + "matchUpdateTypes": ["major"], + "automerge": false, + "prPriority": -1 } ] }