alunduil / alunduil/blog.alunduil.com

Extract the shared Renovate config into alunduil/renovate-config

Đang mở
#404 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Astro
Star
1
Fork
1
Merge trung bình
6 giờ 34 phút
Pull request đã merge (30 ngày)
118

Mô tả

## Summary

Factor the repo-invariant half of `renovate.json` into a shared preset repo (`alunduil/renovate-config`, a `default.json`) and have this repo extend it.

## Motivation

The hardening applied in #364 is byte-identical across the fleet: the `extends` list, `timezone`, `reviewers`, `pre-commit`, `minimumReleaseAge`, `osvVulnerabilityAlerts`, and the no-timestamp carve-out `packageRule`. Every repo that wants the bake period also wants the carve-out, and getting one without the other stalls updates silently. Keeping them inline means changing them everywhere at once, by hand, forever.

Dropping `baseBranchPatterns` in #364 removed the last blocker — it was the only field that differed per repo (`main` vs `master`). Renovate also checks `/renovate-config` automatically when onboarding a new repo, so the preset would apply to future repos without any config at all.

## Scope

- Create `alunduil/renovate-config` with a `default.json` holding the invariant block.
- Replace that block here with `"extends": ["github>alunduil/renovate-config"]`, keeping only what is genuinely repo-specific (the pnpm `customManagers` entry).
- Roll the same replacement through sibling repos.

Worth knowing before starting: `packageRules` and `customManagers` are `mergeable: true`, so a repo's own entries concatenate with the preset's rather than replacing them. `labels` and `reviewers` are not mergeable — setting either locally replaces the inherited value.

## Acceptance criteria

- [ ] `alunduil/renovate-config` exists with a `default.json`.
- [ ] This repo extends it and retains only repo-specific config.
- [ ] A Renovate run against this repo produces the same dependency set as before the extraction.

## Additional context

- #364 applied the block inline; this issue is the deduplication that work was shaped to allow.
- The `renovate-config-validator` hook added in #296 does not resolve remote presets, so it cannot catch a missing or changed `extends` target. That gap is worth noting in whatever this lands as.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.