From 710d325bd8eb8ac3be184f0224ebc9221702ae54 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Wed, 4 Dec 2024 19:13:07 +0800 Subject: [PATCH] fix(renovate): commit message --- .renovate/commitMessage.json5 | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.renovate/commitMessage.json5 b/.renovate/commitMessage.json5 index 9626d046..01afa255 100644 --- a/.renovate/commitMessage.json5 +++ b/.renovate/commitMessage.json5 @@ -3,10 +3,8 @@ "commitMessageTopic": "", "semanticCommitScope": "{{datasource}}/{{depName}}", "commitMessageExtra": "{{oldVersion}} ➼ {{newVersion}}", - "commitMessageSuffix": "", "packageRules": [ { - "matchDatasources": ["docker", "helm"], "matchUpdateTypes": ["major"], "commitMessagePrefix": "feat({{datasource}}/{{depName}})!: " }, @@ -22,25 +20,33 @@ "matchUpdateTypes": ["digest"], "semanticCommitType": "chore" }, + { + "matchDatasources": ["docker"], + "semanticCommitScope": "{{datasource}}/{{ lookup (split depName '/') 2 }}{{ lookup (split depName '/') 3 }}{{ lookup (split depName '/') 4 }}" + }, + { + "matchDatasources": ["docker"], + "matchUpdateTypes": ["major"], + "commitMessagePrefix": "{{datasource}}/{{ lookup (split depName '/') 2 }}{{ lookup (split depName '/') 3 }}{{ lookup (split depName '/') 4 }}" + }, + { + "matchDatasources": ["github-releases", "github-tags"], + "semanticCommitScope": "github/{{depName}}" + }, { "matchDatasources": ["github-releases", "github-tags"], "matchUpdateTypes": ["major"], "commitMessagePrefix": "feat(github/{{depName}})!: " }, { - "matchDatasources": ["github-releases", "github-tags"], + "matchManagers": ["github-actions"], "matchUpdateTypes": ["minor", "patch"], - "semanticCommitScope": "github/{{depName}}" + "semanticCommitScope": "gha/{{depName}}" }, { "matchManagers": ["github-actions"], "matchUpdateTypes": ["major"], "commitMessagePrefix": "feat(gha/{{depName}})!: " }, - { - "matchManagers": ["github-actions"], - "matchUpdateTypes": ["minor", "patch"], - "semanticCommitScope": "gha/{{depName}}" - } ] }