Skip to content

chore: validator updates to renovate.config - #8451

Merged
nicolethoen merged 3 commits into
patternfly:mainfrom
mcoker:update-renovate-config-6.11.26
Jun 18, 2026
Merged

nicolethoen merged 3 commits into
patternfly:mainfrom
mcoker:update-renovate-config-6.11.26

Conversation

@mcoker

@mcoker mcoker commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

fixes #8449

Updates syntax per the renovate docs and running npx --package renovate renovate-config-validator

Summary by CodeRabbit

  • Chores
    • Refined automated dependency update rules by switching to the recommended configuration.
    • Disabled broad npm updates by default and added explicit allowlisting for PatternFly-related packages.
    • Improved grouping for PatternFly dependencies and added more targeted handling for style-related packages.
    • Included a dedicated rule for the PatternFly accessibility package to ensure consistent update behavior.

@mcoker
mcoker requested a review from nicolethoen June 11, 2026 23:24
@patternfly-build

patternfly-build commented Jun 11, 2026 •

Copy link
Copy Markdown
Collaborator

@coderabbitai

coderabbitai Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: e6aa6f53-1256-4fa0-a13c-e60d4e2f1b38

📥 Commits

Reviewing files that changed from the base of the PR and between 95feacd and 5a39b72.

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

Walkthrough

Renovate config switches to config:recommended, replaces broad package-pattern disabling with an npm-wide enabled: false rule, and rewrites PatternFly package allowlist rules to use matchDatasources/matchPackageNames/matchPackagePatterns, including an explicit rule for @patternfly/patternfly-a11y.

Changes

Renovate Configuration Update

Layer / File(s) Summary
Preset switch
.github/renovate.json
extends updated from config:base to config:recommended.
Global npm disable
.github/renovate.json
Replaced broad packagePatterns: ["*"] + excludes with a npm-wide disabling rule using matchDatasources: ["npm"] and enabled: false.
PatternFly allowlist rules
.github/renovate.json
Grouped PatternFly rule rewritten to use matchDatasources/matchPackageNames and matchPackagePatterns (for ^stylelint); explicit enabled rule added for @patternfly/patternfly-a11y.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

released on @prerelease``

Suggested reviewers

  • wise-king-sullyman
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title follows conventional commit guidelines with proper 'chore:' prefix and clearly describes the main change of updating Renovate configuration.
Linked Issues check ✅ Passed The PR successfully addresses all requirements from issue #8449: fixes the invalid matchPackageNames pattern mixing error, updates configuration syntax to comply with Renovate validator, and restores Renovate PR creation functionality.
Out of Scope Changes check ✅ Passed All changes in the PR are directly related to fixing the Renovate configuration validation error specified in issue #8449, with no extraneous modifications.

✏️ 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.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
.github/renovate.json (2)

7-13: 💤 Low value

Consider anchoring regex patterns for precision.

The regex patterns in matchPackagePatterns are not anchored, so they match as substrings. For example, @patternfly/react-core would technically match a package named foo-@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 that stylelint* (as a regex) would not match stylelint-config-standard is wrong—stylelint* matches those strings via a substring match. If the goal is to exclude only names starting with stylelint, 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

📥 Commits

Reviewing files that changed from the base of the PR and between 90eb671 and 7f87c2c.

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

@mcoker
mcoker force-pushed the update-renovate-config-6.11.26 branch from 7f87c2c to 95feacd Compare June 12, 2026 16:01
@mcoker

mcoker commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

@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 ^@patternfly/react to matchPackagePatterns instead of listing the packages individually, like I did with the stylelint packages. I didn't because it wasn't that way before, where stylelint was (the previous config matched stylelint*). Any reason you can think of not to do that?

@nicolethoen

Copy link
Copy Markdown
Contributor

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.
so yeah, go ahead and add ^@patternfly/react. I think it'll have the effect you want.

@nicolethoen
nicolethoen merged commit ca440fe into patternfly:main Jun 18, 2026
6 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.6.0-prerelease.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action Required: Fix Renovate Configuration

3 participants