From 552ba9f358d84eb659328f53bf3612c638148f97 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:21:43 +0000 Subject: [PATCH] Migrate config .github/renovate.json5 --- .github/renovate.json5 | 58 ++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 3a11766c1..34085c922 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,30 +1,44 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["github>canonical/data-platform//renovate_presets/charm.json5"], - "reviewers": ["team:data-platform-postgresql"], - "packageRules": [ - // Later rules override earlier rules + $schema: 'https://docs.renovatebot.com/renovate-schema.json', + extends: [ + 'github>canonical/data-platform//renovate_presets/charm.json5', + ], + reviewers: [ + 'team:data-platform-postgresql', + ], + packageRules: [ { - "matchPackageNames": ["pydantic"], - "allowedVersions": "<2.0.0" + matchPackageNames: [ + 'pydantic', + ], + allowedVersions: '<2.0.0', }, { - "matchManagers": ["regex"], - "matchDepNames": ["juju"], - "matchDatasources": ["pypi"], - "allowedVersions": "<3", - "groupName": "Juju agents" - } + matchManagers: [ + 'custom.regex', + ], + matchDepNames: [ + 'juju', + ], + matchDatasources: [ + 'pypi', + ], + allowedVersions: '<3', + groupName: 'Juju agents', + }, ], - "regexManagers": [ + customManagers: [ { - "fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"], - "matchStrings": [ - "(libjuju: )==(?.*?) +# renovate: latest libjuju 2" + customType: 'regex', + fileMatch: [ + '^\\.github/workflows/[^/]+\\.ya?ml$', + ], + matchStrings: [ + '(libjuju: )==(?.*?) +# renovate: latest libjuju 2', ], - "depNameTemplate": "juju", - "datasourceTemplate": "pypi", - "versioningTemplate": "loose" - } - ] + depNameTemplate: 'juju', + datasourceTemplate: 'pypi', + versioningTemplate: 'loose', + }, + ], }