From afc386ee30aa289f008e2939e97044dbb8c25c3d Mon Sep 17 00:00:00 2001 From: Demo Date: Sun, 11 Oct 2026 12:08:13 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"Zus=C3=A4tzlicher=20Sammel-PR=20mit?= =?UTF-8?q?=20allen=20Updates"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 08c7f3febe0a5dbea1d1c00e33a80b256c3b024d. --- renovate/config.all.js | 21 --------------------- scripts/renovate-update.mjs | 13 ++----------- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 renovate/config.all.js diff --git a/renovate/config.all.js b/renovate/config.all.js deleted file mode 100644 index 5bc4ebd..0000000 --- a/renovate/config.all.js +++ /dev/null @@ -1,21 +0,0 @@ -// Zweiter Renovate-Lauf: EIN zusätzlicher PR mit allen Updates (inkl. Major) auf die jeweils neueste Version. -// Läuft neben dem normalen Lauf (config.js) und stört ihn nicht, weil er ein eigenes Branch-Präfix nutzt. -const base = require("./config.js"); - -module.exports = { - ...base, - // "force" überstimmt die Repo-Konfiguration (renovate.json), z. B. deren groupName-Regeln - force: { - branchPrefix: "renovate-all/", - dependencyDashboard: false, // das Dashboard-Issue pflegt der normale Lauf - separateMajorMinor: false, // pro Paket nur das neueste Update (auch Major) - separateMultipleMajor: false, - packageRules: [ - { - matchPackageNames: ["*"], - groupName: "all dependencies", - groupSlug: "all", - }, - ], - }, -}; diff --git a/scripts/renovate-update.mjs b/scripts/renovate-update.mjs index 0e30883..41606f4 100644 --- a/scripts/renovate-update.mjs +++ b/scripts/renovate-update.mjs @@ -1,7 +1,6 @@ // Vollständiger Renovate-Lauf, komplett lokal: // 1. lokales Forgejo starten + aktuellen Stand pushen (forgejo-up.mjs) // 2. Renovate-CLI gegen das lokale Forgejo laufen lassen (Branches + PRs + Dependency Dashboard) -// + zweiter Lauf mit config.all.js: ein zusätzlicher Sammel-PR mit allen Updates // 3. die Renovate-Branches zurück ins lokale Repo holen (forgejo/renovate/*) import path from "node:path"; import { forgejoUp } from "./forgejo-up.mjs"; @@ -25,20 +24,12 @@ main(async () => { extraEnv.RENOVATE_GITHUB_COM_TOKEN = process.env.GITHUB_TOKEN; } - const repoArgs = [`${FORGEJO_USER}/${FORGEJO_REPO}`, ...process.argv.slice(2)]; - log(`Starte Renovate ${RENOVATE_VERSION} gegen ${FORGEJO_URL} (${FORGEJO_USER}/${FORGEJO_REPO})`); - renovateCli(repoArgs, extraEnv); - - // Zusätzlicher Sammel-PR mit allen Updates (abschaltbar mit RENOVATE_ALL_PR=false) - if (process.env.RENOVATE_ALL_PR !== "false") { - log("Zweiter Lauf: Sammel-PR mit allen Updates (renovate-all/*)"); - renovateCli(repoArgs, { ...extraEnv, RENOVATE_CONFIG_FILE: path.join(ROOT_DIR, "renovate", "config.all.js") }); - } + renovateCli([`${FORGEJO_USER}/${FORGEJO_REPO}`, ...process.argv.slice(2)], extraEnv); log("Hole Renovate-Branches ins lokale Repo"); run("git", ["fetch", "-q", "--prune", GIT_REMOTE, `+refs/heads/*:refs/remotes/${GIT_REMOTE}/*`]); - const branches = run("git", ["branch", "-r", "--list", `${GIT_REMOTE}/renovate/*`, `${GIT_REMOTE}/renovate-all/*`], { capture: true }).stdout; + const branches = run("git", ["branch", "-r", "--list", `${GIT_REMOTE}/renovate/*`], { capture: true }).stdout; process.stdout.write(branches.replace(/^(?=.)/gm, " ")); console.log(`