Zusätzlicher Sammel-PR mit allen Updates
This commit is contained in:
1 parent
1062890099
commit
08c7f3febe
2 files changed
+32
-2
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// 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";
|
||||
@@ -24,12 +25,20 @@ 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([`${FORGEJO_USER}/${FORGEJO_REPO}`, ...process.argv.slice(2)], extraEnv);
|
||||
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") });
|
||||
}
|
||||
|
||||
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/*`], { capture: true }).stdout;
|
||||
const branches = run("git", ["branch", "-r", "--list", `${GIT_REMOTE}/renovate/*`, `${GIT_REMOTE}/renovate-all/*`], { capture: true }).stdout;
|
||||
process.stdout.write(branches.replace(/^(?=.)/gm, " "));
|
||||
|
||||
console.log(`
|
||||
|
||||
Reference in new issue
Block a user