diff --git a/.github/renovate.json5 b/.github/renovate.json5 index b07be0f..e513226 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -2,6 +2,8 @@ "enabled": true, "dependencyDashboard": true, "dependencyDashboardTitle": "Renovate Dashboard", + "assigneesFromCodeOwners": true, + "reviewersFromCodeOwners": true, "suppressNotifications": ["prIgnoreNotification"], "rebaseWhen": "conflicted", "prConcurrentLimit": 5, @@ -12,16 +14,47 @@ "fileMatch": ["charts/.+/Chart\\.yaml$"] }, "packageRules": [ + // Setup datasources { - "datasources": ["helm"], + "matchDatasources": ["helm"], "commitMessageTopic": "Helm chart {{depName}}", "separateMinorPatch": true }, + // Custom version schemes { - "datasources": ["docker"], - "commitMessageTopic": "Docker image {{depName}}", - "separateMinorPatch": true + "matchDatasources": ["github-tags"], + "matchPackageNames": ["potiuk/get-workflow-origin"], + "versioning": "regex:^v(?\\d+)_(?\\d+)(_(?\\d+))?$" }, + // + // Common library dep + // + { + "commitMessagePrefix": "[{{{parentDir}}}]", + "branchTopic": "{{{parentDir}}}-{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", + "updateTypes": ["major"], + "bumpVersion": "major", + "labels": ["dependency/major"], + "packageNames": ["common"], + "groupName": ["internal major dep"] + }, + { + "updateTypes": ["minor"], + "bumpVersion": "minor", + "labels": ["dependency/minor"], + "packageNames": ["common"], + "groupName": ["internal minor dep"] + }, + { + "updateTypes": ["patch"], + "bumpVersion": "patch", + "labels": ["dependency/patch"], + "packageNames": ["common"], + "groupName": ["internal patch dep"] + }, + // + // Other library deps + // { "commitMessagePrefix": "[{{{parentDir}}}]", "branchTopic": "{{{parentDir}}}-{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", @@ -29,6 +62,9 @@ "bumpVersion": "major", "labels": ["dependency/major"], "excludePackageNames": ["common"], + "schedule": [ + "every 3 months on the first day of the month" + ] }, { "updateTypes": ["minor"], @@ -36,6 +72,9 @@ "labels": ["dependency/minor"], "excludePackageNames": ["common"], "groupName": ["external minor dep"], + "schedule": [ + "every 2 months on the first day of the month" + ] }, { "updateTypes": ["patch"], @@ -43,6 +82,9 @@ "labels": ["dependency/patch"], "excludePackageNames": ["common"], "groupName": ["external patch dep"], + "schedule": [ + "every 1 months on the first day of the month" + ] } ] }