Translate scripts, comments and README to English
This commit is contained in:
1 parent
9196e0da4a
commit
3cc2ea573f
7 files changed
+65
-65
No files matched your search
@@ -1,49 +1,49 @@
|
||||
# Renovate lokal – Proof of Concept (npm + .NET)
|
||||
# Renovate locally - proof of concept (npm + .NET)
|
||||
|
||||
Ein Monorepo, dessen Abhängigkeiten mit der **Renovate-CLI** geprüft und aktualisiert werden –
|
||||
komplett lokal, ohne GitHub/GitLab. Alle Pakete sind absichtlich veraltet.
|
||||
A monorepo whose dependencies are checked and updated with the **Renovate CLI** -
|
||||
fully local, without GitHub/GitLab. All packages are intentionally outdated.
|
||||
|
||||
```
|
||||
npm/web/ package.json + package-lock.json (express, lodash)
|
||||
npm/utils/ package.json + package-lock.json (dayjs, typescript)
|
||||
dotnet/ global.json, Directory.Packages.props, .config/dotnet-tools.json, src/{Core,Api}
|
||||
renovate.json Renovate-Konfiguration: je ein PR für npm und NuGet (inkl. Major)
|
||||
renovate.json Renovate configuration: one PR for npm and one for NuGet (including major updates)
|
||||
```
|
||||
|
||||
Voraussetzungen: PowerShell, Node.js ≥ 24.11 (z. B. `volta install node@24`), Git, Podman.
|
||||
Requirements: PowerShell, Node.js >= 24.11 (e.g. `volta install node@24`), Git, Podman.
|
||||
|
||||
## Nur prüfen
|
||||
## Check only
|
||||
|
||||
```powershell
|
||||
.\script\renovate-check.ps1
|
||||
```
|
||||
|
||||
Renovate läuft mit `--platform=local` direkt auf diesem Verzeichnis und listet die verfügbaren Updates.
|
||||
Diese Plattform kann nur prüfen, keine Dateien ändern.
|
||||
Renovate runs with `--platform=local` directly on this directory and lists the available updates.
|
||||
This platform can only check, it cannot change files.
|
||||
|
||||
## Aktualisieren
|
||||
## Update
|
||||
|
||||
Damit Renovate Branches und PRs erstellen kann, braucht es einen Git-Server – hier ein lokales **Forgejo** in Podman.
|
||||
For Renovate to create branches and PRs, a Git server is needed - here a local **Forgejo** in Podman.
|
||||
|
||||
```powershell
|
||||
.\script\forgejo-up.ps1 # Forgejo starten (einmalig bzw. nach Neustart)
|
||||
.\script\renovate-update.ps1 # Renovate laufen lassen (beliebig oft)
|
||||
.\script\forgejo-down.ps1 # Forgejo stoppen; mit -Purge inkl. Daten löschen
|
||||
.\script\forgejo-reset.ps1 # Forgejo komplett zurücksetzen (alle Repos, PRs, Token weg) und neu starten
|
||||
.\script\forgejo-up.ps1 # start Forgejo (once, or after a reboot)
|
||||
.\script\renovate-update.ps1 # run Renovate (as often as you like)
|
||||
.\script\forgejo-down.ps1 # stop Forgejo; with -Purge also delete all data
|
||||
.\script\forgejo-reset.ps1 # reset Forgejo completely (all repos, PRs, tokens gone) and start fresh
|
||||
```
|
||||
|
||||
- `forgejo-up.ps1` startet Forgejo (`http://localhost:3000`, Login `renovate` / `renovate`),
|
||||
legt den Bot-User an und speichert ein frisches Access-Token in `script/.forgejo-token`.
|
||||
- `renovate-update.ps1` kennt Forgejo nur über Endpoint, Repo-Name (`renovate/renovate-test`) und `.forgejo-token`. Es pusht `main`
|
||||
(das Repo wird beim ersten Push automatisch angelegt), lässt Renovate laufen und holt die Branches als
|
||||
`forgejo/renovate/*` ins lokale Repo. Jeder Lauf erzeugt **neue Branches + PRs** (je einen für npm und NuGet), z. B. Branch
|
||||
`renovate/2026-10-11-14-03-22-123-npm` mit PR „Update npm 2026-10-11 14:03:22.123“.
|
||||
- `forgejo-up.ps1` starts Forgejo (`http://localhost:3000`, login `renovate` / `renovate`),
|
||||
creates the bot user and stores a fresh access token in `script/.forgejo-token`.
|
||||
- `renovate-update.ps1` only knows Forgejo by endpoint, repository name (`renovate/renovate-test`) and `.forgejo-token`.
|
||||
It pushes `main` (the repository is created automatically on the first push), runs Renovate and fetches the
|
||||
branches into the local repository as `forgejo/renovate/*`. Every run creates **new branches + PRs**
|
||||
(one for npm, one for NuGet), e.g. branch `renovate/2026-10-11-14-03-22-123-npm` with PR "Update npm 2026-10-11 14:03:22.123".
|
||||
|
||||
Übernehmen:
|
||||
Apply:
|
||||
|
||||
```powershell
|
||||
git diff main...forgejo/renovate/<zeitstempel>-npm
|
||||
git merge forgejo/renovate/<zeitstempel>-npm
|
||||
git diff main...forgejo/renovate/<timestamp>-npm
|
||||
git merge forgejo/renovate/<timestamp>-npm
|
||||
```
|
||||
|
||||
Optional: `$env:GITHUB_COM_TOKEN = '<token>'` – dann schreibt Renovate Release Notes von github.com in die PRs.
|
||||
Optional: `$env:GITHUB_COM_TOKEN = '<token>'` - Renovate then adds release notes from github.com to the PRs.
|
||||
Reference in new issue
Block a user