From 3bf05e1f118f6d2a6afffb6691dedf8cc25dbe61 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 20:24:28 +0000 Subject: [PATCH] chore(config): migrate renovate config (#106) chore(config): migrate config .github/renovate.json5 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/renovate.json5 | 82 ++++++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 38 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 4286a50..10fcbbf 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,85 +1,91 @@ { extends: [ - "config:base" + 'config:recommended', ], enabledManagers: [ - "regex", - "github-actions", + 'custom.regex', + 'github-actions', ], - regexManagers: [ + customManagers: [ { - fileMatch: [ - ".github/renovate.json5$", + customType: 'regex', + fileMatch: [ + '.github/renovate.json5$', ], matchStrings: [ - "constraints: {(\\s*\\n\\s*)\"go\":\\s*\"(?.*?)\"", + 'constraints: {(\\s*\\n\\s*)"go":\\s*"(?.*?)"', ], - depNameTemplate: "go", - datasourceTemplate: "golang-version", - versioningTemplate: "npm", + depNameTemplate: 'go', + datasourceTemplate: 'golang-version', + versioningTemplate: 'npm', }, { + customType: 'regex', fileMatch: [ - "Earthfile$" + 'Earthfile$', ], matchStrings: [ - "FROM golang:(?.*?)\\n" + 'FROM golang:(?.*?)\\n', ], - depNameTemplate: "golang", - datasourceTemplate: "docker" + depNameTemplate: 'golang', + datasourceTemplate: 'docker', }, { + customType: 'regex', fileMatch: [ - "Earthfile$" + 'Earthfile$', ], matchStrings: [ - "google.golang.org/protobuf/cmd/protoc-gen-go@(?.*?)\\n" + 'google.golang.org/protobuf/cmd/protoc-gen-go@(?.*?)\\n', ], - depNameTemplate: "google.golang.org/protobuf", - datasourceTemplate: "go" + depNameTemplate: 'google.golang.org/protobuf', + datasourceTemplate: 'go', }, { + customType: 'regex', fileMatch: [ - "Earthfile$" + 'Earthfile$', ], matchStrings: [ - "google.golang.org/grpc/cmd/protoc-gen-go-grpc@(?.*?)\\n" + 'google.golang.org/grpc/cmd/protoc-gen-go-grpc@(?.*?)\\n', ], - depNameTemplate: "google.golang.org/grpc/cmd/protoc-gen-go-grpc", - datasourceTemplate: "go", + depNameTemplate: 'google.golang.org/grpc/cmd/protoc-gen-go-grpc', + datasourceTemplate: 'go', }, { + customType: 'regex', fileMatch: [ - "Earthfile$" + 'Earthfile$', ], matchStrings: [ - "github.com/bufbuild/buf/cmd/buf@(?.*?)\\n" + 'github.com/bufbuild/buf/cmd/buf@(?.*?)\\n', ], - depNameTemplate: "github.com/bufbuild/buf", - datasourceTemplate: "go" + depNameTemplate: 'github.com/bufbuild/buf', + datasourceTemplate: 'go', }, { + customType: 'regex', fileMatch: [ - "Earthfile$" + 'Earthfile$', ], matchStrings: [ - "\\$\\(go env GOPATH\\)/bin (?.*?)\\n" + '\\$\\(go env GOPATH\\)/bin (?.*?)\\n', ], - depNameTemplate: "golangci/golangci-lint", - datasourceTemplate: "github-releases" + depNameTemplate: 'golangci/golangci-lint', + datasourceTemplate: 'github-releases', }, { + customType: 'regex', fileMatch: [ - ".github/workflows/main.yml$", - ".github/workflows/pr.yml$", - ".github/workflows/commitlint.yml$" + '.github/workflows/main.yml$', + '.github/workflows/pr.yml$', + '.github/workflows/commitlint.yml$', ], matchStrings: [ - "version: (?.*?)\\n" + 'version: (?.*?)\\n', ], - depNameTemplate: "earthly/earthly", - datasourceTemplate: "github-releases" - } + depNameTemplate: 'earthly/earthly', + datasourceTemplate: 'github-releases', + }, ], } -