diff --git a/.github/renovate.json5 b/.github/renovate.json5 index f89ea39..21e2766 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,65 +1,79 @@ { extends: [ - "config:recommended", - ":pinDevDependencies", - ":separateMultipleMajorReleases", - "default:pinDigestsDisabled", + 'config:recommended', + ':pinDevDependencies', + ':separateMultipleMajorReleases', + 'default:pinDigestsDisabled', ], schedule: [ - "* */1 * * *", // every 1 hour + '* */1 * * *', ], - postUpdateOptions: ["gomodTidy", "gomodUpdateImportPaths"], - commitMessageSuffix: " in {{packageFile}}", + postUpdateOptions: [ + 'gomodTidy', + 'gomodUpdateImportPaths', + ], + commitMessageSuffix: ' in {{packageFile}}', dependencyDashboardAutoclose: true, automerge: true, - baseBranches: ["main"], + baseBranches: [ + 'main', + ], platformAutomerge: true, - labels: ["dependencies"], + labels: [ + 'dependencies', + ], prHourlyLimit: 1, osvVulnerabilityAlerts: true, vulnerabilityAlerts: { enabled: true, - labels: ["security"], + labels: [ + 'security', + ], }, packageRules: [ { - matchPackageNames: ["go", "golang"], - versioning: "go", - groupName: "go", + matchPackageNames: [ + 'go', + 'golang', + ], + versioning: 'go', + groupName: 'go', }, { - matchDepTypes: ["golang-version"], + matchDepTypes: [ + 'golang-version', + ], prPriority: 999, }, { - description: "Group charmbracelet packages", - groupName: "charmbracelet", - matchPackagePrefixes: ["github.com/charmbracelet/"], + description: 'Group charmbracelet packages', + groupName: 'charmbracelet', + matchPackageNames: [ + 'github.com/charmbracelet/{/,}**', + ], }, ], customManagers: [ { - customType: "regex", - fileMatch: ["(^|/)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"], + customType: 'regex', + fileMatch: [ + '(^|/)Dockerfile$', + '(^|/)Dockerfile\\.[^/]*$', + ], matchStrings: [ - // example: - // - // # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp - // ENV DEFAULT_TERRAFORM_VERSION=x.x.x - // - // # renovate: datasource=github-releases depName=open-policy-agent/conftest - // ARG DEFAULT_CONFTEST_VERSION=x.x.x - "renovate: datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s(ARG|ENV) .*?_VERSION=(?.*)\\s", + 'renovate: datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s(ARG|ENV) .*?_VERSION=(?.*)\\s', ], - versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", + versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}', }, { - customType: "regex", - fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"], + customType: 'regex', + fileMatch: [ + '^\\.github/workflows/[^/]+\\.ya?ml$', + ], matchStrings: [ - "renovate: datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s.*?: (?.*)\\s", + 'renovate: datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s.*?: (?.*)\\s', ], - versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", + versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}', }, ], }