fix(renovate): reuse root config preset #11

Merged
martin merged 2 commits from fix/renovate-config-root-preset into main 2026-10-25 17:51:57 +00:00
Owner

Summary

  • Rename the Renovate config owner migration to renovate-config and update it to use the root preset.
  • Switch this repository's Renovate config to extend the root preset while keeping the flake preset.

Checks

  • bash -n migrations/renovate-config/run.sh
  • jq empty renovate.json
  • Migration transformation checked with a representative config.
## Summary - Rename the Renovate config owner migration to `renovate-config` and update it to use the root preset. - Switch this repository's Renovate config to extend the root preset while keeping the flake preset. ## Checks - `bash -n migrations/renovate-config/run.sh` - `jq empty renovate.json` - Migration transformation checked with a representative config.
fix(renovate): reuse root config preset
Some checks failed
ci/woodpecker/push/renovate-lint Pipeline was successful
ci/woodpecker/pr/pr-review Pipeline was canceled
8d6d8831ea
Rename the owner migration to renovate-config and update consumers to extend the root preset.

Co-authored-by: OpenCode <opencode@anoma.ly>
docs(renovate): document migration
All checks were successful
ci/woodpecker/pr/pr-review Pipeline was successful
90100b9c34
Co-authored-by: OpenCode <opencode@anoma.ly>
Member

Review Summary

Verified against the live target repo. I confirmed Personal/renovate-config has default.json at its root, so the bare preset reference Personal/renovate-config resolves correctly per Renovate's local-preset rules (root default.json is the default file). I also confirmed preset/default.json still exists, so nothing currently breaks either way.

The transformation itself is correct. The two s///g substitutions run sequentially over the slurped file, so martin/renovate-config//preset/default → Personal/renovate-config//preset/default → Personal/renovate-config. Ordering matters and is right. //preset/flake is untouched, matching the README. The script is idempotent (a second run produces no diff, so multi-gitter won't open a duplicate PR), and the literal substitutions cannot invalidate JSON. set -euo pipefail and the [[ -f renovate.json ]] guard match the existing codeowners/flake-input-tags style.

Behavioral note worth confirming: root default.json is a superset of preset/default.json — it additionally sets :semanticCommits, nix.enabled, and osvVulnerabilityAlerts. So migrated repos gain those settings, not just the owner rename. That looks like the intent of the consolidation in Personal/renovate-config#5, but it is a config change on every target repo, not a pure rename.

Housekeeping: the rename to renovate-config changes the multi-gitter branch to migrate/renovate-config. No PRs are currently open under the old migrate/renovate-config-owner branch (only #11 and the lock-file PR), and just _close derives the branch from the name without needing the directory, so nothing is orphaned.

No security or performance concerns. Nothing blocking.


*🤖 Review by opencode (opencode/mimo-v2.6-flash-free) — verdict: approve

# Review Summary **Verified against the live target repo.** I confirmed `Personal/renovate-config` has `default.json` at its root, so the bare preset reference `Personal/renovate-config` resolves correctly per Renovate's local-preset rules (root `default.json` is the default file). I also confirmed `preset/default.json` still exists, so nothing currently breaks either way. **The transformation itself is correct.** The two `s///g` substitutions run sequentially over the slurped file, so `martin/renovate-config//preset/default` → `Personal/renovate-config//preset/default` → `Personal/renovate-config`. Ordering matters and is right. `//preset/flake` is untouched, matching the README. The script is idempotent (a second run produces no diff, so multi-gitter won't open a duplicate PR), and the literal substitutions cannot invalidate JSON. `set -euo pipefail` and the `[[ -f renovate.json ]]` guard match the existing `codeowners`/`flake-input-tags` style. **Behavioral note worth confirming:** root `default.json` is a *superset* of `preset/default.json` — it additionally sets `:semanticCommits`, `nix.enabled`, and `osvVulnerabilityAlerts`. So migrated repos gain those settings, not just the owner rename. That looks like the intent of the consolidation in `Personal/renovate-config#5`, but it is a config change on every target repo, not a pure rename. **Housekeeping:** the rename to `renovate-config` changes the multi-gitter branch to `migrate/renovate-config`. No PRs are currently open under the old `migrate/renovate-config-owner` branch (only #11 and the lock-file PR), and `just _close` derives the branch from the name without needing the directory, so nothing is orphaned. No security or performance concerns. Nothing blocking. --- *🤖 Review by opencode (opencode/mimo-v2.6-flash-free) — verdict: **approve** <!-- forgejo-opencode-review -->
clank-bot left a comment

Code review findings from opencode.

Code review findings from opencode. <!-- forgejo-opencode-review -->
@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ -f renovate.json ]]; then
Member
[style] Only root-level `renovate.json` is inspected, and skipped repos produce no output. Any target repo using `.github/renovate.json`, `renovate.json5`, or `.renovaterc` will silently keep the stale `martin/renovate-config` / `//preset/default` references — and since `preset/default.json` still exists upstream but now diverges from root `default.json`, those repos would keep the older config indefinitely. Consider echoing skipped repos (or widening the file match) so the migration's coverage is visible in the multi-gitter log.
<!-- forgejo-opencode-review --> [style] Only root-level `renovate.json` is inspected, and skipped repos produce no output. Any target repo using `.github/renovate.json`, `renovate.json5`, or `.renovaterc` will silently keep the stale `martin/renovate-config` / `//preset/default` references — and since `preset/default.json` still exists upstream but now diverges from root `default.json`, those repos would keep the older config indefinitely. Consider echoing skipped repos (or widening the file match) so the migration's coverage is visible in the multi-gitter log.
martin merged commit 6dc0b51e01 into main 2026-10-25 17:51:57 +00:00
martin deleted branch fix/renovate-config-root-preset 2026-10-25 17:51:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Personal/migrations!11
No description provided.