From 39d1cea5051217228dda9528623edd6859401c4e Mon Sep 17 00:00:00 2001 From: Havrileck Alexandre Date: Mon, 23 Sep 2024 20:18:52 +0200 Subject: [PATCH] chore: Change Renovate configuration and change project files for new Renovate --- Makefile | 9 ++++++++- renovate.json | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 399d2d9e..0ed2d792 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,13 @@ HAS_MOCKGEN:=$(shell command -v mockgen;) HAS_GOTESTSUM:=$(shell command -v gotestsum;) HAS_FIELDALIGNMENT:=$(shell command -v fieldalignment;) +# +## Tool versions +# + +# renovate: datasource=github-tags depName=golangci/golangci-lint +GOLANGCI_LINT_VERSION := "v1.60.3" + .DEFAULT_GOAL := code/lint ############# @@ -175,7 +182,7 @@ ifndef HAS_GOLANGCI_LINT ifndef HAS_CURL $(error You must install curl) endif - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.60.3 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin $(GOLANGCI_LINT_VERSION) endif ifndef HAS_GIT $(error You must install Git) diff --git a/renovate.json b/renovate.json index 585b62fc..a9a011d5 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,36 @@ { - "extends": ["config:base"], + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":rebaseStalePrs", + ":semanticCommits", + ":semanticCommitScope(deps)" + ], + "configMigration": true, + "labels": ["renovate"], + "pre-commit": { + "enabled": true + }, + "vulnerabilityAlerts": { + "enabled": true, + "labels": ["vulnerability-alert"] + }, + "packageRules": [ + { + "groupName": "mkdocs", + "groupSlug": "mkdocs", + "matchPackageNames": ["mkdocs-material", "squidfunk/mkdocs-material"] + } + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": ["^Makefile$"], + "matchStrings": [ + "#\\s*renovate:\\s*datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s.*?_VERSION\\s*:=\\s*\"(?.*)\"\\s" + ], + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" + } + ], "ignoreDeps": ["github.com/aws/aws-sdk-go"] }