diff --git a/.github/renovate.json5 b/.github/renovate.json5 index e4b6198..2f8c492 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,88 +1,110 @@ { - $schema: "https://docs.renovatebot.com/renovate-schema.json", + $schema: 'https://docs.renovatebot.com/renovate-schema.json', extends: [ - "config:recommended", - ":semanticCommitsDisabled", - "regexManagers:githubActionsVersions" + 'config:recommended', + ':semanticCommitsDisabled', + 'customManagers:githubActionsVersions', ], - labels: ["kind/enhancement"], - postUpdateOptions: ["gomodTidy"], - automergeStrategy: "squash", + labels: [ + 'kind/enhancement', + ], + postUpdateOptions: [ + 'gomodTidy', + ], + automergeStrategy: 'squash', customManagers: [ { - // Generic detection for pod-like image specifications. - customType: "regex", - fileMatch: ["^\.ci\/pipeline_definitions$"], - matchStrings: ["image: ['\"]?(?.*?):(?.*?)['\"]?\\s"], - datasourceTemplate: "docker" + customType: 'regex', + fileMatch: [ + '^.ci/pipeline_definitions$', + ], + matchStrings: [ + 'image: [\'"]?(?.*?):(?.*?)[\'"]?\\s', + ], + datasourceTemplate: 'docker', }, { - // Update `_VERSION` and `_version` variables in Makefiles and scripts. - // Inspired by `regexManagers:dockerfileVersions` preset. - customType: "regex", - fileMatch: ["Makefile$", "\\.mk$", "\\.sh$"], + customType: 'regex', + fileMatch: [ + 'Makefile$', + '\\.mk$', + '\\.sh$', + ], matchStrings: [ - "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s.+?_(VERSION|version) *[?:]?= *\"?(?.+?)\"?\\s" - ] + '# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s.+?_(VERSION|version) *[?:]?= *"?(?.+?)"?\\s', + ], }, ], packageRules: [ { - matchUpdateTypes: ["patch"], - automerge: true + matchUpdateTypes: [ + 'patch', + ], + automerge: true, }, { - // bump go mod directive by default (https://github.com/renovatebot/renovate/blob/main/lib/modules/versioning/go-mod-directive/readme.md) - "matchDatasources": ["golang-version"], - "rangeStrategy": "bump" + matchDatasources: [ + 'golang-version', + ], + rangeStrategy: 'bump', }, { - // Group tool updates in one PR. - groupName: "Update tools", - matchFileNames: ["hack\/tools\\.mk"] + groupName: 'Update tools', + matchFileNames: [ + 'hack/tools\\.mk', + ], }, { - // gardener/gardener dictates these k8s dependencies. Ignore dependency updates for these packages. - matchDatasources: ["go"], - matchPackagePatterns: [ - "k8s\\.io\/.+", - "sigs\\.k8s\\.io\/controller-runtime" + matchDatasources: [ + 'go', + ], + enabled: false, + matchPackageNames: [ + '/k8s\\.io/.+/', + '/sigs\\.k8s\\.io/controller-runtime/', ], - enabled: false }, { - // Group golang dependencies in one PR, separate by major, minor and patch - groupName: "dependencies", - matchDatasources: ["go"], + groupName: 'dependencies', + matchDatasources: [ + 'go', + ], matchPackageNames: [ - "github.com/gardener/gardener", - "github.com/go-logr/logr", - "github.com/onsi/ginkgo/v2", - "github.com/onsi/gomega", - "golang.org/x/oauth2" + 'github.com/gardener/gardener', + 'github.com/go-logr/logr', + 'github.com/onsi/ginkgo/v2', + 'github.com/onsi/gomega', + 'golang.org/x/oauth2', ], separateMajorMinor: true, - separateMinorPatch: true + separateMinorPatch: true, }, { - // Do not update to patch versions of the Go Toolchain. - // Default golang images set the environment variable GOTOOLCHAIN=local - // and we don't want to enforce every (test-)image to be on the latest patch level. - matchManagers: ["gomod"], - matchUpdateTypes: ["patch"], - matchPackagePatterns: ["go"], - enabled: false + matchManagers: [ + 'gomod', + ], + matchUpdateTypes: [ + 'patch', + ], + enabled: false, + matchPackageNames: [ + '/go/', + ], }, { - // Group github-actions in one PR. - groupName: "github-actions", - matchManagers: ["github-actions"] + groupName: 'github-actions', + matchManagers: [ + 'github-actions', + ], }, { - // Group golang package updates for .ci/pipeline_definitions separately - "matchFileNames": [".ci/pipeline_definitions"], - "matchPackageNames": ["golang"], - "groupName": "[pipeline_definitions] Golang Package Updates" + matchFileNames: [ + '.ci/pipeline_definitions', + ], + matchPackageNames: [ + 'golang', + ], + groupName: '[pipeline_definitions] Golang Package Updates', }, - ] + ], }