From 0b20d556c65defda495119d458bbd5d346bf48a1 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 22 Aug 2025 17:18:03 +0300 Subject: [PATCH] chore(ci): update config, add managers --- .editorconfig | 1 - .github/renovate.json | 20 ++++++++++++++++++++ .pre-commit-config.yaml | 4 ++-- default.json | 18 +++++++++++++----- 4 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 .github/renovate.json diff --git a/.editorconfig b/.editorconfig index 91da6ef..31a134f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,4 +8,3 @@ insert_final_newline = true charset = utf-8 indent_style = space indent_size = 2 - diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..e2e73cd --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "assignees": [ + "ivuorinen" + ], + "automergeType": "pr", + "extends": [ + "github>ivuorinen/renovate-config" + ], + "packageRules": [ + { + "automerge": true, + "matchPackageNames": [ + "renovate" + ], + "separateMinorPatch": false + } + ], + "prCreation": "immediate" +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af69c31..030fa63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -16,7 +16,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/renovatebot/pre-commit-hooks - rev: 39.164.1 + rev: 41.82.5 hooks: - id: renovate-config-validator files: default.json diff --git a/default.json b/default.json index 5aacb5d..8d9c070 100644 --- a/default.json +++ b/default.json @@ -2,6 +2,7 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "assigneesFromCodeOwners": true, "commitBody": "Signed-off-by: {{{gitAuthor}}}", + "commitMessageAction": "update", "commitMessageExtra": "to {{newVersion}}", "commitMessageSuffix": "", "commitMessageTopic": "{{depName}}", @@ -14,8 +15,8 @@ "Upgrade Dockerfile ENV and FROM variables base on regex. ", "See https://docs.renovatebot.com/configuration-options/#matchstringsstrategy" ], - "fileMatch": [ - "^Dockerfile$" + "managerFilePatterns": [ + "/^Dockerfile$/" ], "matchStrings": [ "ENV [A-Z]+_VERSION=(?.*) # (?.*?)/(?.*?)(\\&versioning=(?.*?))?\\s", @@ -53,7 +54,6 @@ "**/.archive/**" ], "lockFileMaintenance": { - "commitMessageAction": "Update", "extends": [ "group:all" ] @@ -274,7 +274,7 @@ "minor" ], "semanticCommitScope": "github-action", - "semanticCommitType": "feat" + "semanticCommitType": "chore" }, { "commitMessageExtra": "({{currentVersion}} → {{newVersion}})", @@ -286,7 +286,7 @@ "patch" ], "semanticCommitScope": "github-action", - "semanticCommitType": "fix" + "semanticCommitType": "chore" }, { "automerge": true, @@ -437,6 +437,14 @@ ] } ], + "postUpdateOptions": [ + "gomodUpdateImportPaths", + "npmDedupe", + "composerWithAll" + ], + "pre-commit": { + "enabled": true + }, "separateMajorMinor": true, "separateMinorPatch": false, "separateMultipleMajor": true,