From 302378139eecda39bcda1e30ed55583e8324c132 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 22 May 2026 20:23:45 +0000 Subject: [PATCH] port generic Renovate options from gitea's `renovate.json5` (#545) Ports repo-agnostic options from gitea/gitea's `renovate.json5`: - `default.json`: `minimumReleaseAge: "5 days"`, `configMigration: true` - `go-deps.json`: `gomodUpdateImportPaths` postUpdateOption + immediate Go toolchain bumps (opt-in preset, no-op without `go.mod`) - `npm-deps.json`: `pnpmDedupe` postUpdateOption (no-op for non-pnpm repos) Reviewed-on: https://gitea.com/gitea/renovate-config/pulls/545 Reviewed-by: Lunny Xiao Co-authored-by: silverwind Co-committed-by: silverwind --- default.json | 2 ++ go-deps.json | 12 +++++++++++- npm-deps.json | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/default.json b/default.json index 0a268ac..102b195 100644 --- a/default.json +++ b/default.json @@ -1,6 +1,8 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:recommended","local>gitea/renovate-config:workflow-deps"], + "configMigration": true, + "minimumReleaseAge": "5 days", "semanticCommits": "enabled", "automergeStrategy": "auto", "platformAutomerge": false diff --git a/go-deps.json b/go-deps.json index cdd954f..97616a8 100644 --- a/go-deps.json +++ b/go-deps.json @@ -4,12 +4,22 @@ "enabled": true }, "postUpdateOptions": [ - "gomodTidy" + "gomodTidy", + "gomodUpdateImportPaths" ], "packageRules": [ { "groupName": "Go dependencies", "matchManagers": ["gomod"] + }, + { + "description": "Bump the Go toolchain version immediately", + "matchManagers": ["gomod"], + "matchDepNames": ["go"], + "matchDepTypes": ["golang"], + "rangeStrategy": "bump", + "schedule": ["at any time"], + "minimumReleaseAge": "0" } ] } diff --git a/npm-deps.json b/npm-deps.json index 09088f9..de32951 100644 --- a/npm-deps.json +++ b/npm-deps.json @@ -3,6 +3,9 @@ "npm": { "enabled": true }, + "postUpdateOptions": [ + "pnpmDedupe" + ], "packageRules": [ { "groupName": "npm dependencies",