From cfbcd7f60f60d7a111428fb0530719992448a40c Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Mon, 16 Sep 2024 08:39:26 +0200 Subject: [PATCH] chore(renovate): disable renovate self-updates on release branches --- renovate.json | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/renovate.json b/renovate.json index ff8ababc63..cfd9c397eb 100644 --- a/renovate.json +++ b/renovate.json @@ -105,33 +105,34 @@ { "description": "Automerge renovate updates", "matchDatasources": ["docker"], - "matchPackageNames": [ - "code.forgejo.org/forgejo-contrib/renovate", - "ghcr.io/visualon/renovate" - ], + "matchPackageNames": ["code.forgejo.org/forgejo-contrib/renovate"], "matchUpdateTypes": ["minor", "patch", "digest"], "automerge": true }, { "description": "Add reviewer and additional labels to renovate PRs", "matchDatasources": ["docker"], - "matchPackageNames": [ - "code.forgejo.org/forgejo-contrib/renovate", - "ghcr.io/visualon/renovate" - ], + "matchPackageNames": ["code.forgejo.org/forgejo-contrib/renovate"], "reviewers": ["viceice"], "addLabels": ["forgejo/ci", "test/not-needed"] }, { "description": "Update renovate with higher prio to come through rate limit", "matchDatasources": ["docker"], + "matchPackageNames": ["code.forgejo.org/forgejo-contrib/renovate"], + "extends": ["schedule:weekly"], + "prPriority": 10, + "groupName": "renovate" + }, + { + "description": "Disable renovate self-updates for release branches", + "matchBaseBranches": ["^v\\d+\\.\\d+\\/forgejo$"], + "matchDatasources": ["docker"], "matchPackageNames": [ "code.forgejo.org/forgejo-contrib/renovate", "ghcr.io/visualon/renovate" ], - "extends": ["schedule:weekly"], - "prPriority": 10, - "groupName": "renovate" + "enabled": false }, { "description": "Automerge some packages when CI succeeds",