diff --git a/.github/renovate.json b/.github/renovate.json index 0b90a475b..d74dc10b7 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -4,21 +4,36 @@ "labels": ["dependencies"], "prConcurrentLimit": 0, "prHourlyLimit": 0, + "separateMultipleMajor": true, "schedule": ["* 0-7 * * 1"], + "packageRules": [ + { + "groupName": "Ansible collections", + "matchManagers": [ + "ansible-galaxy", + "regex" + ] + } + ], "ansible-galaxy": { "fileMatch": ["(^|/)[\\w-]*requirements([_.]\\w+)?\\.ya?ml$"], "packageRules": [ { - "matchPackageNames": ["*"], - "groupName": "Ansible collections" - }, - { - "matchUpdateTypes": ["minor", "patch"], + "automerge": true, "matchCurrentVersion": "!/^0/", - "automerge": true + "matchUpdateTypes": ["minor", "patch"] } ] }, + "customManagers": [ + { + "customType": "regex", + "datasourceTemplate": "galaxy-collection", + "fileMatch": ["README.md"], + "matchStrings": ["- name: (?\\w+\\.\\w+)(?:\\s+#.*)?\\s+version: (?\\d+\\.\\d+\\.\\d+)"], + "versioningTemplate": "semver" + } + ], "dockerfile": { "ignorePaths": ["molecule/**/Dockerfile.j2"] }, @@ -26,24 +41,24 @@ "addLabels": ["skip-changelog"], "packageRules": [ { + "groupName": "GitHub Actions", "matchPackageNames": [ "actions/**", "github/**" - ], - "groupName": "GitHub Actions" + ] }, { - "matchPackageNames": ["docker/**"], - "groupName": "Docker Actions" + "groupName": "Docker Actions", + "matchPackageNames": ["docker/**"] }, { "enabled": false, "matchUpdateTypes": ["digest"] }, { + "automerge": true, "matchUpdateTypes": ["minor", "patch"], - "matchCurrentVersion": "!/^0/", - "automerge": true + "matchCurrentVersion": "!/^0/" } ] }, @@ -51,18 +66,18 @@ "fileMatch": ["(^|/)[\\w-]*requirements([_.]\\w+)?\\.(txt|pip)$"], "packageRules": [ { - "matchPackageNames": ["*"], - "groupName": "Python dependencies" + "groupName": "Python dependencies", + "matchPackageNames": ["*"] }, { - "matchPackageNames": ["ansible-core"], "groupName": "Ansible core", + "matchPackageNames": ["ansible-core"], "separateMinorPatch": true }, { + "automerge": true, "matchUpdateTypes": ["patch"], - "matchCurrentVersion": "!/^0/", - "automerge": true + "matchCurrentVersion": "!/^0/" } ] }