From 3828b3be38bb40643112b0b6e7d62fb0a9c8946a Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Tue, 1 Oct 2024 20:57:41 +0800 Subject: [PATCH] feat(renovate): add labels --- .renovate/labels.json5 | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/.renovate/labels.json5 b/.renovate/labels.json5 index 6f91e35f40..cb957c738f 100644 --- a/.renovate/labels.json5 +++ b/.renovate/labels.json5 @@ -2,44 +2,22 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "packageRules": [ { - "matchUpdateTypes": ["major"], - "labels": ["type/major"] - }, - { - "matchUpdateTypes": ["minor"], - "labels": ["type/minor"] - }, - { - "matchUpdateTypes": ["patch"], - "labels": ["type/patch"] - }, - { - "matchDatasources": ["docker"], - "addLabels": ["renovate/container"] - }, - { - "matchDatasources": ["helm"], - "addLabels": ["renovate/helm"] + "labels": ["renovate/datasource/{{datasource}}"] }, { "matchDatasources": ["github-releases", "github-tags"], - "addLabels": ["renovate/github-release"] - }, - { - "matchManagers": ["github-actions"], - "addLabels": ["renovate/github-action"] + "labels": ["renovate/datasource/github-release"] }, { - "matchFileNames": ["kube/deploy/apps/**"], - "addLabels": ["kube-deploy-apps"] + "addLabels": ["renovate/type/{{updateType}}"] }, { - "matchFileNames": ["kube/deploy/core/**"], - "addLabels": ["kube-deploy-core"] + "matchFileNames": ["kube/deploy/**"], + "addLabels": ["kube/deploy/{{ lookup (split packageFileDir '/') 2 }}"] }, { "matchFileNames": ["kube/clusters/**"], - "addLabels": ["{{ lookup (split packageFileDir '/') 2 }}"] + "addLabels": ["kube/clusters/{{ lookup (split packageFileDir '/') 2 }}"] }, { "addLabels": ["renovate/name/{{depNameSanitized}}"]