diff --git a/.github/renovatebot/labels.json5.j2 b/.github/renovatebot/labels.json5.j2 index 950f4d2..10261ea 100644 --- a/.github/renovatebot/labels.json5.j2 +++ b/.github/renovatebot/labels.json5.j2 @@ -1,59 +1,44 @@ -{%- raw %} { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "packageRules": [ +{%- if language == "python" %} { - "matchUpdateTypes": ["major"], - "labels": ["type/major"] - }, - { - "matchUpdateTypes": ["minor"], - "labels": ["type/minor"] - }, - { - "matchUpdateTypes": ["patch"], - "labels": ["type/patch"] + "matchDatasources": ["pypi"], + "addLabels": ["renovate/pip"] }, +{%- elif language == "go" %} { - "matchUpdateTypes": ["digest"], - "labels": ["type/digest"] + "matchDatasources": ["go"], + "addLabels": ["renovate/go"] }, +{%- endif %} +{%- if docker %} { "matchDatasources": ["docker"], "addLabels": ["renovate/container"] }, +{%- endif %} +{%- if helm %} { "matchDatasources": ["helm"], "addLabels": ["renovate/helm"] }, +{%- endif %} { - "matchManagers": ["kustomize"], - "addLabels": ["renovate/kustomize"] - }, - { - "matchDatasources": ["galaxy", "galaxy-collection"], - "addLabels": ["renovate/ansible"] - }, - { - "matchDatasources": ["terraform-provider"], - "addLabels": ["renovate/terraform"] + "matchUpdateTypes": ["major"], + "labels": ["type/major"] }, { - "matchDatasources": ["github-releases", "github-tags"], - "addLabels": ["renovate/github-release"] + "matchUpdateTypes": ["minor"], + "labels": ["type/minor"] }, { - "matchManagers": ["github-actions"], - "addLabels": ["renovate/github-action"] + "matchUpdateTypes": ["patch"], + "labels": ["type/patch"] }, { - "matchDatasources": ["pypi"], - "addLabels": ["renovate/pip"] + "matchUpdateTypes": ["digest"], + "labels": ["type/digest"] }, - { - "matchDatasources": ["go"], - "addLabels": ["renovate/go"] - } ] -} -{%- endraw %} \ No newline at end of file +} \ No newline at end of file