From e75d58321228c685254f486e1fd3751eed4971e5 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 26 Jul 2026 20:06:48 +0200 Subject: [PATCH] ci: match `# renovate:` markers that trail the value (#38640) The preset we extended only matches a `# renovate:` comment on the line above the `_VERSION` assignment. Ours trails the value, like the ones in the `Makefile`, so it never matched and the pin has sat at `43.141.5` since https://github.com/go-gitea/gitea/pull/37050. Co-authored-by: Claude (Opus 5) --- renovate.json5 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/renovate.json5 b/renovate.json5 index e263bf06da..dad4e878b3 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -3,7 +3,6 @@ "extends": [ "config:recommended", "helpers:pinGitHubActionDigests", - "customManagers:githubActionsVersions", "schedule:weekly", // dependency update PR on monday, vulnerabilityAlerts bypasses this ], "configMigration": true, @@ -19,6 +18,13 @@ "semanticCommitType": "fix", // overrides packageRules }, "customManagers": [ + { + "customType": "regex", + "managerFilePatterns": ["/(^|/)\\.(gitea|github)/(workflows|actions)/.+\\.ya?ml$/"], + "matchStrings": [ + "[A-Za-z0-9_]+_VERSION[ \\t]*:[ \\t]*[\"']?(?[^\\s\"']+)[\"']?[ \\t]*# renovate: datasource=(?[a-zA-Z0-9-._]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?(?=\\s|$)", + ], + }, { "customType": "regex", "managerFilePatterns": ["/(^|/)Makefile$/"],