diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 83175666..3b04499f 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,64 +1,61 @@ { - "extends": [ - "github>newrelic/coreint-automation:renovate-base.json5" + extends: [ + 'github>newrelic/coreint-automation:renovate-base.json5', ], - // Label PRs with `dependencies`. - "labels": ["dependencies"], - // By default, assign the coreint team as reviewers. - // PRs related to the infra agent will be assigned to CAOS as per a packageRule below. - "reviewers": ["team:coreint"], - // RegexManagers will match patterns and extract dependencies from bundle.yaml. - "regexManagers": [ + labels: [ + 'dependencies', + ], + reviewers: [ + 'team:coreint', + ], + customManagers: [ { - // Extract base agent image from bundle.yml. - "fileMatch": [ - "^bundle.yml$", - "^bundle-fips.yml$", - "^bundle-windows.yml$" + customType: 'regex', + managerFilePatterns: [ + '/^bundle.yml$/', + '/^bundle-fips.yml$/', + '/^bundle-windows.yml$/', + ], + depNameTemplate: 'newrelic/infrastructure', + datasourceTemplate: 'docker', + matchStrings: [ + 'agentVersion: (?[0-9.]+)', ], - "depNameTemplate": "newrelic/infrastructure", // Defined directly since we only capture the version in the regex. - "datasourceTemplate": "docker", - "matchStrings": [ - "agentVersion: (?[0-9.]+)" - ] }, { - // Extract dependency name and version for integrations. - "fileMatch": [ - "^bundle.yml$", - "^bundle-fips.yml$", - "^bundle-windows.yml$" + customType: 'regex', + managerFilePatterns: [ + '/^bundle.yml$/', + '/^bundle-fips.yml$/', + '/^bundle-windows.yml$/', + ], + depNameTemplate: 'newrelic/{{{integrationName}}}', + datasourceTemplate: 'github-releases', + matchStrings: [ + ' *- name: (?.+)\n *version: (?.+)', ], - // Dependency name (org/repo format) is created from the `integrationName` named capture group in the regex below. - "depNameTemplate": "newrelic/{{{integrationName}}}", - "datasourceTemplate": "github-releases", // Version info is fetched from GitHub. - "matchStrings": [ - // Capture integration name (without `newrelic/`) and version from bundle.yaml. - " *- name: (?.+)\n *version: (?.+)" - ] - } + }, ], - "packageRules": [ + packageRules: [ { - // Assign PRs related to the agent to the caos team. - "matchPackageNames": [ - "newrelic/infrastructure" + matchPackageNames: [ + 'newrelic/infrastructure', + ], + reviewers: [ + 'team:caos', ], - "reviewers": ["team:caos"] }, { - // NRJMX 1.6.x is known to be broken, so we skip 1.6.x. - "matchPackageNames": [ - "newrelic/nrjmx" + matchPackageNames: [ + 'newrelic/nrjmx', ], - "allowedVersions": ">=1.7" + allowedVersions: '>=1.7', }, { - // nri-ecs moved to newrelic/nri-ecs image since 1.4.0. - "matchPackageNames": [ - "newrelic/nri-ecs" + matchPackageNames: [ + 'newrelic/nri-ecs', ], - "allowedVersions": "<=1.3.1" - } - ] + allowedVersions: '<=1.3.1', + }, + ], }