Skip to content

chore(deps): separate Renovate patch grouping by dependency#24119

Merged
thinkasany merged 2 commits into
devfrom
chore-renovate
Apr 25, 2026
Merged

chore(deps): separate Renovate patch grouping by dependency#24119
thinkasany merged 2 commits into
devfrom
chore-renovate

Conversation

@thinkasany
Copy link
Copy Markdown
Member

@thinkasany thinkasany commented Apr 23, 2026

拆分 Renovate 分组,以便于更方便的去升级一些依赖。

before:
group:allNonMajor
太大了,根本没办法操作
image

after:
可以手动选择一些 minor 去升级,然后 dev 的依赖的 patch 可以合并成一个。
minor 还是拆开按包升级比较好(语义更好,知道哪儿个 PR 调整了哪儿个依赖,修改调整也更方便)。

Summary by CodeRabbit

  • Chores
    • Updated dependency update configuration to group development-dependency patch updates together during automated updates.
    • Refined rules for skipping peer-dependency updates by adjusting how dependency types are matched.

Copilot AI review requested due to automatic review settings April 23, 2026 15:31
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: abed721a-aeea-4ef3-aa8b-2ce3d89c0053

📥 Commits

Reviewing files that changed from the base of the PR and between a71476b and 5430be7.

📒 Files selected for processing (1)
  • .github/renovate.json5
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/renovate.json5

📝 Walkthrough

Walkthrough

The Renovate configuration is updated to remove the group:allNonMajor preset and introduce a new package rule that specifically groups patch-version updates for devDependencies together. Additionally, the rule disabling peer dependency updates is modified to use matchDepTypes instead of the deprecated depTypeList.

Changes

Cohort / File(s) Summary
Renovate Configuration
.github/renovate.json5
Removed group:allNonMajor preset from extends. Added a new package rule grouping devDependency patch updates with matchUpdateTypes: ['patch'] and custom groupName/groupSlug. Updated peerDependencies update disabling rule from depTypeList to matchDepTypes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • btea
  • Dsaquel
  • rzzf

Poem

🐰 A rabbit hops through config files with glee,
Grouping patches where they ought to be,
No more scattered versions in the wind,
All devDep patches neatly pinned! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description explains the motivation (too-large groups) and the solution (separate patch groups for devDependencies, keep minors separate), but lacks formal structure required by the template. While the description conveys intent well, consider following the repository's template structure more closely for consistency with contribution guidelines.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: separating Renovate patch grouping by dependency type, which directly matches the configuration update in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore-renovate

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

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 updates the repository’s Renovate configuration to split dependency update grouping, making Renovate PRs smaller and easier to selectively upgrade (especially for minor updates) while still grouping patch updates for dev dependencies.

Changes:

  • Removed the group:allNonMajor preset to avoid an overly large combined PR.
  • Added a package rule to group patch updates for devDependencies into a single Renovate PR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 23, 2026

Open in StackBlitz

pnpm add https://pkg.pr.new/element-plus@24119
npm i https://pkg.pr.new/element-plus@24119
yarn add https://pkg.pr.new/[email protected]

commit: 5430be7

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Size Change: 0 B

Total Size: 1.48 MB

ℹ️ View Unchanged
Filename Size
dist/element-plus/dist/index.css 47.3 kB
dist/element-plus/dist/index.full.js 437 kB
dist/element-plus/dist/index.full.min.js 289 kB
dist/element-plus/dist/index.full.min.mjs 281 kB
dist/element-plus/dist/index.full.mjs 428 kB

compressed-size-action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 86.2% 18520 / 21483
🔵 Statements 85.04% 19392 / 22802
🔵 Functions 84.6% 4935 / 5833
🔵 Branches 75.58% 10778 / 14259
File CoverageNo changed files found.
Generated in workflow #2557 for commit 5430be7 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/renovate.json5:
- Around line 7-15: The renovate rule uses the legacy key depTypeList which
Renovate no longer recognizes; update the rule that defines groupName 'all patch
devDependencies' / groupSlug 'all-patch-dev-dependencies' to use matchDepTypes
instead of depTypeList so the constraint applies to devDependencies for patch
updates.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c11b15a6-73ed-4a90-8123-a4c858d16170

📥 Commits

Reviewing files that changed from the base of the PR and between 9829a9b and a71476b.

📒 Files selected for processing (1)
  • .github/renovate.json5

Comment thread .github/renovate.json5 Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

🧪 Playground Preview: https://element-plus.run/?pr=24119
Please comment the example via this playground if needed.

@thinkasany thinkasany requested a review from btea April 24, 2026 15:39
@thinkasany
Copy link
Copy Markdown
Member Author

@btea 佬,这个可以搞吗,这样子可以方便把 dev deps 升级上来。另外一部分会影响产物的 deps 先不动。

@btea
Copy link
Copy Markdown
Member

btea commented Apr 25, 2026

有道理,可以搞 👍

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@thinkasany thinkasany merged commit 24b4d6c into dev Apr 25, 2026
17 checks passed
@thinkasany thinkasany deleted the chore-renovate branch April 25, 2026 13:01
@github-actions
Copy link
Copy Markdown
Contributor

@thinkasany Thanks for your contribution! ❤️