Move script, example-configurations and results (formerly reports) into renovate/
This commit is contained in:
1 parent
c45f0e927b
commit
2267b21544
14 files changed
+83
-52
No files matched your search
@@ -9,17 +9,25 @@ npm/utils/ package.json + package-lock.json (dayjs, typescript)
|
||||
dotnet/ global.json, Directory.Packages.props, .config/dotnet-tools.json,
|
||||
src/{Core,Api} with packages.lock.json
|
||||
renovate.json Renovate configuration: one PR for npm and one for NuGet (including major updates)
|
||||
renovate/ script/ (PowerShell scripts), example-configurations/, results/ (output of every run)
|
||||
```
|
||||
|
||||
Requirements: PowerShell, Node.js >= 24.11 (e.g. `volta install node@24`), Git, Podman,
|
||||
.NET SDK 8 (Renovate runs `dotnet restore` to update the NuGet lock files).
|
||||
|
||||
Every run of `renovate-check.ps1` and `renovate-update.ps1` writes `reports/<timestamp>/`
|
||||
with `renovate-report.json` (Renovate report) and `renovate.log` (console output at debug level).
|
||||
Every run of `renovate-check.ps1` and `renovate-update.ps1` writes `renovate/results/<timestamp>/`:
|
||||
|
||||
| File | Content |
|
||||
|---|---|
|
||||
| `command.ps1` | the executed Renovate command incl. environment variables (run it from the repository root to repeat the run) |
|
||||
| `renovate.json` | the Renovate configuration that was used |
|
||||
| `renovate.log` | console output at debug level |
|
||||
| `renovate-report.json` | Renovate report |
|
||||
| `info.json` | `startedAt`, `finishedAt`, `durationSeconds` and (update only) the created `pullRequests` |
|
||||
|
||||
## Example configurations
|
||||
|
||||
`example-configurations/` contains alternative `renovate.json` files (copy one over `renovate.json` to use it):
|
||||
`renovate/example-configurations/` contains alternative `renovate.json` files (copy one over `renovate.json` to use it):
|
||||
|
||||
| File | PRs |
|
||||
|---|---|
|
||||
@@ -33,7 +41,7 @@ with `renovate-report.json` (Renovate report) and `renovate.log` (console output
|
||||
## Check only
|
||||
|
||||
```powershell
|
||||
.\script\renovate-check.ps1
|
||||
.\renovate\script\renovate-check.ps1
|
||||
```
|
||||
|
||||
Renovate runs with `--platform=local` directly on this directory and lists the available updates.
|
||||
@@ -44,14 +52,14 @@ This platform can only check, it cannot change files.
|
||||
For Renovate to create branches and PRs, a Git server is needed - here a local **Forgejo** in Podman.
|
||||
|
||||
```powershell
|
||||
.\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
|
||||
.\renovate\script\forgejo-up.ps1 # start Forgejo (once, or after a reboot)
|
||||
.\renovate\script\renovate-update.ps1 # run Renovate (as often as you like)
|
||||
.\renovate\script\forgejo-down.ps1 # stop Forgejo; with -Purge also delete all data
|
||||
.\renovate\script\forgejo-reset.ps1 # reset Forgejo completely (all repos, PRs, tokens gone) and start fresh
|
||||
```
|
||||
|
||||
- `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`.
|
||||
creates the bot user and stores a fresh access token in `renovate/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**
|
||||
|
||||
Reference in new issue
Block a user