Skip to content

Instantly share code, notes, and snippets.

@roock
Last active February 1, 2021 15:59
Show Gist options
  • Save roock/5db4afdb5cc3c112c7866adc73102917 to your computer and use it in GitHub Desktop.
Save roock/5db4afdb5cc3c112c7866adc73102917 to your computer and use it in GitHub Desktop.

Testing with 24.28.4

docker run -it --rm -v $PWD:/app renovate/renovate:24.28.4 bash -c "cd /app && renovate-config-validator"
Validating renovate.json
Validating config.js
OK

Testing with 24.32.2

docker run -it --rm -v $PWD:/app renovate/renovate:24.32.2 bash -c "cd /app && renovate-config-validator"
Validating renovate.json
renovate.json contains errors:

[
  {
    "depName": "Configuration Error",
    "message": "Invalid configuration option: packageRules[0].managers"
  },
  {
    "depName": "Configuration Error",
    "message": "Invalid configuration option: packageRules[1].managers"
  },
  {
    "depName": "Configuration Error",
    "message": "Invalid configuration option: packageRules[1].packagePatterns"
  },
  {
    "depName": "Configuration Error",
    "message": "packageRules: Each packageRule must contain at least one selector (matchPaths, matchLanguages, matchBaseBranches, matchManagers, matchDatasources, matchDepTypes, matchPackageNames, matchPackagePatterns, excludePackageNames, excludePackagePatterns, matchCurrentVersion, matchSourceUrlPrefixes, matchUpdateTypes). If you wish for configuration to apply to all packages, it is not necessary to place it inside a packageRule at all."
  },
  {
    "depName": "Configuration Error",
    "message": "packageRules: Each packageRule must contain at least one selector (matchPaths, matchLanguages, matchBaseBranches, matchManagers, matchDatasources, matchDepTypes, matchPackageNames, matchPackagePatterns, excludePackageNames, excludePackagePatterns, matchCurrentVersion, matchSourceUrlPrefixes, matchUpdateTypes). If you wish for configuration to apply to all packages, it is not necessary to place it inside a packageRule at all."
  }
]
Validating config.js
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"packageRules": [
{
"managers": ["composer"],
"assignees": ["roock" ],
"extends": ["schedule:weekly"]
},
{
"managers": ["composer"],
"packagePatterns": ["aws-sdk"],
"extends": ["schedule:monthly"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment