chore: validator updates to renovate.config - #8451
Conversation
|
Preview: https://pf-pr-8451.surge.sh A11y report: https://pf-pr-8451-a11y.surge.sh |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughRenovate config switches to ChangesRenovate Configuration Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
.github/renovate.json (2)
7-13: 💤 Low valueConsider anchoring regex patterns for precision.
The regex patterns in
matchPackagePatternsare not anchored, so they match as substrings. For example,@patternfly/react-corewould technically match a package namedfoo-@patternfly/react-core-bar.While npm package naming conventions make this unlikely in practice, anchoring the patterns would be more precise:
^@patternfly/react-core$.However, this is a minor concern since the current patterns should work correctly for real-world package names.
Also applies to: 15-15
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/renovate.json around lines 7 - 13, Update the matchPackagePatterns entries in .github/renovate.json to use anchored regexes so they match whole package names (e.g., change "`@patternfly/react-core`" to "^^`@patternfly/react-core`$$" — actually use ^ and $ around each pattern) ; specifically edit the list items shown (e.g., "`@patternfly/patternfly-a11y`", "`@patternfly/react-core`", "`@patternfly/react-icons`", "`@patternfly/react-code-editor`", "`@patternfly/react-table`", "`@patternfly/documentation-framework`", "sass") to wrap them with ^ and $ so they become precise anchored patterns like ^`@patternfly/react-core`$ (apply same change to the other matching line referenced).
14-14: Fix the mismatch claim for!stylelint*in.github/renovate.json(line 14). The earlier argument thatstylelint*(as a regex) would not matchstylelint-config-standardis wrong—stylelint*matches those strings via a substring match. If the goal is to exclude only names starting withstylelint, anchor the regex (e.g.,^stylelint) to avoid unintended substring matches.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/renovate.json at line 14, The exclusion "!stylelint*" currently performs a substring match and unintentionally excludes packages like "stylelint-config-standard"; update the pattern so it only matches names that start with "stylelint" by anchoring the regex—replace "!stylelint*" with an anchored pattern such as "!^stylelint" (or "!^stylelint.*" if you prefer explicit matching of the rest) where the string "!stylelint*" appears.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/renovate.json:
- Around line 7-13: Update the matchPackagePatterns entries in
.github/renovate.json to use anchored regexes so they match whole package names
(e.g., change "`@patternfly/react-core`" to "^^`@patternfly/react-core`$$" —
actually use ^ and $ around each pattern) ; specifically edit the list items
shown (e.g., "`@patternfly/patternfly-a11y`", "`@patternfly/react-core`",
"`@patternfly/react-icons`", "`@patternfly/react-code-editor`",
"`@patternfly/react-table`", "`@patternfly/documentation-framework`", "sass") to
wrap them with ^ and $ so they become precise anchored patterns like
^`@patternfly/react-core`$ (apply same change to the other matching line
referenced).
- Line 14: The exclusion "!stylelint*" currently performs a substring match and
unintentionally excludes packages like "stylelint-config-standard"; update the
pattern so it only matches names that start with "stylelint" by anchoring the
regex—replace "!stylelint*" with an anchored pattern such as "!^stylelint" (or
"!^stylelint.*" if you prefer explicit matching of the rest) where the string
"!stylelint*" appears.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 3feda925-7482-4729-943e-abc2f8a4efb8
📒 Files selected for processing (1)
.github/renovate.json
7f87c2c to
95feacd
Compare
|
@nicolethoen made some updates to simplify the file according to the renovate docs. Validates fine and claude approves. One other change I'd like to make is add |
|
Only reason to keep the explicit list would be if there's a @patternfly/react-* package in the repo you deliberately want to pin and not auto-update. |
|
🎉 This PR is included in version 6.6.0-prerelease.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #8449
Updates syntax per the renovate docs and running
npx --package renovate renovate-config-validatorSummary by CodeRabbit