Add composable npm and github-actions Renovate presets#30
Merged
Conversation
These add-on presets provide group + auto-merge packageRules for npm and github-actions managers, so repositories can compose them on top of the elixir preset without duplicating config. They intentionally omit enabledManagers (consumers set that locally) to stay composable.
There was a problem hiding this comment.
Pull request overview
This PR adds two new composable Renovate preset configs for the npm and github-actions managers, intended to be combined via extends with existing presets (e.g., elixir.json) so individual repositories can opt into manager-specific grouping + auto-merge behavior without modifying the base preset.
Changes:
- Add
npm.jsonpreset to group and enable auto-merge for npm minor/patch/digest (and lock file maintenance) updates. - Add
github-actions.jsonpreset to group and enable auto-merge for GitHub Actions minor/patch/digest updates.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| npm.json | New Renovate add-on preset to group and auto-merge npm updates (incl. lock file maintenance). |
| github-actions.json | New Renovate add-on preset to group and auto-merge GitHub Actions updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Address review feedback: the rule matches lockFileMaintenance updates, so the description now mentions them for clearer Renovate logs. Refs toshi0806/garoon_crawler#48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
npm と github-actions マネージャ向けの composable な Renovate プリセットを2つ追加します。これにより、各リポジトリは
elixir.jsonを変更せずに、必要なマネージャのプリセットを組み合わせてextendsできるようになります。追加ファイル
npm.json: npm の minor/patch/digest/lockFileMaintenance を group + auto-mergegithub-actions.json: GitHub Actions の minor/patch/digest を group + auto-merge設計方針
latex.jsonの慣習に倣い、enabledManagersで絞らずpackageRulesをマネージャ別に提供する add-on プリセットとして実装enabledManagersはあえて含めない(合成時に配列が後勝ちで置換されるため、利用側リポジトリのトップレベルで明示する想定)schedule/lockFileMaintenanceなどのグローバル設定は組み合わせ先プリセット(例:elixir.json)から継承される利用例
```json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>smkwlab/.github:elixir",
"github>smkwlab/.github:npm",
"github>smkwlab/.github:github-actions"
],
"enabledManagers": ["mix", "npm", "github-actions"]
}
```
背景
toshi0806/garoon_crawler#48 にて、ローカルの
renovate.jsonの重複設定を共有設定に寄せる検討から発生しました。garoon_crawler は Playwright(npm)と GitHub Actions の更新も必要なため、これらの composable プリセットを用意します。