From 0031a20a406eacd01c2745bb66a6bc5cd9b75565 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 21 Oct 2026 05:43:45 +0200 Subject: [PATCH] fix(renovate): repair the Gitea release manager The appVersion manager from 475df2f captures `currentVersion`, which Renovate rejects, so it has opened no PRs here since 2026-07-21 (https://gitea.com/gitea/helm-gitea/issues/1098). Its `^...$` anchors never match either, Renovate runs these patterns without the multiline flag, and Gitea releases live in go-gitea/gitea on GitHub, not gitea/gitea. The workflow version markers move to the trailing form the shared preset already picks up, so the local copy of that manager goes, as does `helpers:pinGitHubActionDigests`, which the preset extends too. HELM_UNITTEST_VERSION was never picked up because of its `#renovate:` spelling. Co-Authored-By: Claude (Opus 5.5) --- .gitea/workflows/helm.yaml | 2 +- .gitea/workflows/release-version.yml | 3 +-- renovate.json | 17 +++-------------- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 22566b1..c8d9593 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -32,7 +32,7 @@ jobs: with: version: v4.3.0 # renovate: datasource=github-releases depName=helm/helm - env: - HELM_UNITTEST_VERSION: v1.0.0 #renovate: datasource=github-releases depName=helm-unittest/helm-unittest + HELM_UNITTEST_VERSION: v1.0.0 # renovate: datasource=github-releases depName=helm-unittest/helm-unittest name: Install helm-unittest run: helm plugin install --verify=false --version "${HELM_UNITTEST_VERSION}" https://github.com/helm-unittest/helm-unittest - name: Update helm dependencies diff --git a/.gitea/workflows/release-version.yml b/.gitea/workflows/release-version.yml index 86ef0ab..2b86e5f 100644 --- a/.gitea/workflows/release-version.yml +++ b/.gitea/workflows/release-version.yml @@ -20,8 +20,7 @@ jobs: - name: Install helm env: - # renovate: datasource=docker depName=alpine/helm - HELM_VERSION: "3.21.3" + HELM_VERSION: "3.21.3" # renovate: datasource=docker depName=alpine/helm run: | curl --fail --location --output /dev/stdout --silent --show-error https://get.helm.sh/helm-v${HELM_VERSION}-linux-$(dpkg --print-architecture).tar.gz | tar --extract --gzip --file /dev/stdin mv linux-$(dpkg --print-architecture)/helm /usr/local/bin/ diff --git a/renovate.json b/renovate.json index 09ee182..0dddb25 100644 --- a/renovate.json +++ b/renovate.json @@ -1,8 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "gitea>gitea/renovate-config", - "helpers:pinGitHubActionDigests", + "local>gitea/renovate-config", ":automergeMinor", "schedule:automergeDaily", "schedule:weekends" @@ -18,16 +17,6 @@ "enabled": true }, "customManagers": [ - { - "description": "Gitea-version of https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions", - "customType": "regex", - "managerFilePatterns": [ - "/.gitea/workflows/.+\\.ya?ml$/" - ], - "matchStrings": [ - "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*[\"']?(?.+?)[\"']?\\s" - ] - }, { "description": "Detect helm-unittest yaml schema file", "customType": "regex", @@ -43,13 +32,13 @@ "description": "Automatically detect new Gitea releases", "customType": "regex", "datasourceTemplate": "github-releases", - "depNameTemplate": "gitea/gitea", + "depNameTemplate": "go-gitea/gitea", "extractVersionTemplate": "^v(?.*)$", "managerFilePatterns": [ "/(^|/)Chart\\.ya?ml$/" ], "matchStrings": [ - "^appVersion:\\s+[\"']?(?\\S+)[\"']?$" + "(?:^|\\n)appVersion:\\s+[\"']?(?[^\\s\"']+)" ] } ],