From 0905fa0e2d5789c7d08556c796cc605ec3c8cdcf Mon Sep 17 00:00:00 2001 From: ggjulio Date: Wed, 9 Oct 2024 01:44:41 +0200 Subject: [PATCH] chore(ci): update renovate yaml customManager Signed-off-by: ggjulio --- .github/workflows/release.yaml | 2 ++ renovate-presets/commons.json5 | 25 +++++++++++++++++++++ renovate-presets/custom-managers/yaml.json5 | 8 +++---- renovate-presets/devtool.json5 | 4 +++- 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 43aa01735b7f2..4079657a4d99c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -163,8 +163,10 @@ jobs: id: spdx-builder env: # defines the spdx/spdx-sbom-generator version to use. + # renovate: datasource=go packageName=github.com/spdx/spdx-sbom-generator/cmd/generator versioning=regex:^v(?\d+)\.(?\d+)\.(?\d+)?$ SPDX_GEN_VERSION: v0.0.13 # defines the sigs.k8s.io/bom version to use. + # renovate: datasource=go packageName=sigs.k8s.io/bom/cmd/bom versioning=regex:^v(?\d+)\.(?\d+)\.(?\d+)?$ SIGS_BOM_VERSION: v0.2.1 # comma delimited list of project relative folders to inspect for package # managers (gomod, yarn, npm). diff --git a/renovate-presets/commons.json5 b/renovate-presets/commons.json5 index f6676a1d28540..bfc30b2643aac 100644 --- a/renovate-presets/commons.json5 +++ b/renovate-presets/commons.json5 @@ -41,6 +41,22 @@ "major" ] }, + { + "matchUpdateTypes": [ + "minor" + ], + "addLabels": [ + "minor" + ] + }, + { + "matchUpdateTypes": [ + "patch" + ], + "addLabels": [ + "patch" + ] + }, { "description": "Add labels for PRs related to javascript", "matchDatasources": [ @@ -69,6 +85,15 @@ "addLabels": [ "python" ] + }, + { + "description": "Add labels for PRs related to containers", + "matchCategories": [ + "docker" + ], + "addLabels": [ + "docker" + ] } ] } \ No newline at end of file diff --git a/renovate-presets/custom-managers/yaml.json5 b/renovate-presets/custom-managers/yaml.json5 index 8729f611c8ea7..3bc13b00d8ff1 100644 --- a/renovate-presets/custom-managers/yaml.json5 +++ b/renovate-presets/custom-managers/yaml.json5 @@ -4,12 +4,12 @@ { "description": "A generic custom manager for updating any yaml fields ending by 'version:' (case insensitive)", "customType": "regex", + "matchStrings": [ + "# renovate: datasource=(?.*?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?.*?))?(?: extractVersion=(?.*?))?\\s.+?:\\s*(?:'|\")(?[^(?:'|\")]+)(?:'|\")", + "# renovate: datasource=(?.*?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?.*?))?(?: extractVersion=(?.*?))?\\s.+?:\\s*(?[^'\"\\s]+)" + ], "fileMatch": [ ".github\\/workflows.+\\.(?:yml|yaml)$" - ], - "matchStrings": [ - "# renovate: datasource=(?.*?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?.*?))?(?: extractVersion=(?.*?))?\\s.+?((?i)VERSION)\\s*:\\s*(?:'|\")(?[^(?:'|\")]+)(?:'|\")", - "# renovate: datasource=(?.*?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?.*?))?(?: extractVersion=(?.*?))?\\s.+?((?i)VERSION)\\s*:\\s*(?[^'\"\\s]+)" ] } ] diff --git a/renovate-presets/devtool.json5 b/renovate-presets/devtool.json5 index 96ad51d3808e6..3a4c6b736a364 100644 --- a/renovate-presets/devtool.json5 +++ b/renovate-presets/devtool.json5 @@ -16,7 +16,9 @@ "go" ], "matchPackageNames": [ - "github.com/golangci/golangci-lint" + "github.com/golangci/golangci-lint", + "github.com/spdx/spdx-sbom-generator/cmd/generator", + "sigs.k8s.io/bom/cmd/bom" ], "enabled": true },