ansible-infra/renovate.json
June f345ff5e00
All checks were successful
/ Ansible Lint (push) Successful in 2m27s
renovate: make exclusion of CalVer non-patch/-minor upgrades work
Pretix and Pretalx both use CalVer, so we don't want to have upgrades to
their second number be identified as minor updates and get grouped with
all the other minor and patch updates.
The regex to re-classify the second number as major doesn't work.
Probably because of:
"Important: all capture groups must contain only purely numeric values."
(https://docs.renovatebot.com/modules/versioning/regex/)
So instead match on the minor update type for Pretix and Pretalx and set
the group name to null.
2026-03-06 19:53:24 +01:00

65 lines
2 KiB
JSON

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
// Parts from config:best-practices:
// https://docs.renovatebot.com/presets-config/#configbest-practices
":configMigration",
"abandonments:recommended",
"security:minimumReleaseAgeNpm",
":ignoreUnstable",
":disableRateLimiting",
":rebaseStalePrs",
":label(renovate)"
],
"semanticCommits": "disabled",
"ignorePaths": [
"ansible_collections/**",
"galaxy-roles/**"
],
"packageRules": [
// Create a package rule for grouping all stable non-major dependency updates together.
// A combination of/inspired by:
// https://docs.renovatebot.com/presets-group/#groupallnonmajor
// https://docs.renovatebot.com/presets-default/#automergestablenonmajor
{
"groupName": "all stable non-major dependencies",
"groupSlug": "all-stable-minor-patch",
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["docker.io/pretix/standalone"],
"matchUpdateTypes": ["minor"],
"groupName": null
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["docker.io/pretalx/standalone"],
"matchUpdateTypes": ["minor"],
"groupName": null
}
],
"customManagers": [
// Custom manager using regex for letting Renovate find dependencies in inventory variables.
{
"customType": "regex",
"managerFilePatterns": [
"/^inventories/.*?_vars/.*?\\.ya?ml$/"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?\\s*.+?\\s*:\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
],
"docker-compose": {
"managerFilePatterns": [
"/(^|/)(?:docker-)?compose[^/]*\\.ya?ml.j2$/"
]
}
}