79077361

Date: 2024-10-11 08:34:10
Score: 1
Natty:
Report link

As @Gaël J suggested, the more appropriate option is to use 'matchCurrentVersion'.

renovate.json:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:recommended"
  ],
  "packageRules": [
    {
      "matchPackageNames": ["chalk"],
      "matchCurrentVersion": "/java$/"
      "enabled": false
    }
  ]
}

This now disables the check and subsequently disables the generation of the PR:

"deps": [
  {
    "depType": "devDependencies",
    "depName": "chalk",
    "currentValue": "2.5.2-java",
    "datasource": "npm",
    "prettyDepType": "devDependency",
    "updates": [],
    "packageName": "chalk",
    "skipReason": "disabled"
  }
],
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Gaël
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Marsstar