Skip to content

Add composable npm and github-actions Renovate presets#30

Merged
toshi0806 merged 2 commits into
mainfrom
add-npm-and-actions-renovate-presets
Jun 4, 2026
Merged

Add composable npm and github-actions Renovate presets#30
toshi0806 merged 2 commits into
mainfrom
add-npm-and-actions-renovate-presets

Conversation

@toshi0806
Copy link
Copy Markdown
Member

概要

npm と github-actions マネージャ向けの composable な Renovate プリセットを2つ追加します。これにより、各リポジトリは elixir.json を変更せずに、必要なマネージャのプリセットを組み合わせて extends できるようになります。

追加ファイル

  • npm.json: npm の minor/patch/digest/lockFileMaintenance を group + auto-merge
  • github-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 プリセットを用意します。

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.
Copilot AI review requested due to automatic review settings June 4, 2026 05:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json preset to group and enable auto-merge for npm minor/patch/digest (and lock file maintenance) updates.
  • Add github-actions.json preset 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.

Comment thread npm.json Outdated
Address review feedback: the rule matches lockFileMaintenance updates, so
the description now mentions them for clearer Renovate logs.

Refs toshi0806/garoon_crawler#48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@toshi0806 toshi0806 merged commit 475cf56 into main Jun 4, 2026
1 check passed
@toshi0806 toshi0806 deleted the add-npm-and-actions-renovate-presets branch June 4, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants