From 00d772bac47be0b32152594903e375a9cfe34ccf Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Sat, 10 May 2025 03:08:12 +0800 Subject: [PATCH] fix(renovate/mise): chore commit type, branch prefix, aqua fix --- .renovate/mise.json5 | 149 ++++++++++++++++++++++--------------------- 1 file changed, 77 insertions(+), 72 deletions(-) diff --git a/.renovate/mise.json5 b/.renovate/mise.json5 index a63ef2bc..258304d5 100644 --- a/.renovate/mise.json5 +++ b/.renovate/mise.json5 @@ -1,73 +1,78 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - //"mise": { "enabled": false }, - "packageRules": [ - { - "matchFileNames": [".mise.toml", "mise.toml"], - "semanticCommitType": "chore", - "semanticCommitScope": "mise" - }, - { - "matchFileNames": [".mise.toml", "mise.toml"], - "addLabels": ["renovate/mise"] - }, - { - "matchFileNames": [".mise.toml", "mise.toml"], - "additionalBranchPrefix": "mise/" - } - ], - "customManagers": [ - { - "customType": "regex", - "description": "Process Go packages in mise.toml", - "fileMatch": [".mise.toml", "mise.toml"], - "matchStrings": [ - "\"go:(?[\\w\\-\\/\\.]+)\" = \\[?\"(?[\\d\\.]+)\"" - ], - "datasourceTemplate": "go", - "versioningTemplate": "semver" - }, - { - "customType": "regex", - "description": "Process cargo packages in mise.toml", - "fileMatch": [".mise.toml", "mise.toml"], - "matchStrings": [ - "\"cargo:(?[\\w\\-\\/]+)\" = \\[?\"(?[\\d\\.]+)\"" - ], - "datasourceTemplate": "crate", - "versioningTemplate": "cargo" - }, - { - "customType": "regex", - "description": "Process npm packages in mise.toml", - "fileMatch": [".mise.toml", "mise.toml"], - "matchStrings": [ - "\"npm:(?@?[\\w\\-\\/]+)\" = \\[?\"(?[\\d\\.]+)\"" - ], - "datasourceTemplate": "npm", - "versioningTemplate": "semver" - }, - { - "customType": "regex", - "description": "Process pipx packages in mise.toml", - "fileMatch": [".mise.toml", "mise.toml"], - "matchStrings": [ - "\"pipx:(?[\\w\\-\\.]+)\" = \\[?\"(?[\\d\\.]+|latest)\"" - ], - "datasourceTemplate": "pypi", - "versioningTemplate": "pep440" - }, - { - "customType": "regex", - "description": "Process aqua and ubi packages in mise.toml", - "fileMatch": [".mise.toml", "mise.toml"], - "matchStrings": [ - "^(?:\"aqua:|\"ubi:)?(?[\\w\\-\\/]+)\"? = \\[?\"(?[\\d\\.]+|latest|v[\\d\\.]+)\"" - ], - "datasourceTemplate": "github-releases", - "versioningTemplate": "semver", - "packageNameTemplate": "{{#if (lookup (split depName '/') 1)}}{{depName}}{{else}}{{depName}}/{{depName}}{{/if}}", - "extractVersionTemplate": "^v?(?.*)$" - } - ] - } + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + //"mise": { "enabled": false }, + "packageRules": [ + { + "matchFileNames": [".mise.toml", "mise.toml"], + "semanticCommitType": "chore", + "semanticCommitScope": "mise" + }, + { + "matchFileNames": [".mise.toml", "mise.toml"], + "addLabels": ["renovate/mise"] + }, + { + "matchFileNames": [".mise.toml", "mise.toml"], + "additionalBranchPrefix": "mise/" + }, + { + "description": "Mise GitHub: Use package name as user/org if no user/org", + "matchFileNames": [".mise.toml", "mise.toml"], + "matchDatasources": ["github-releases"], + "overridePackageName": "{{#if (lookup (split packageName '/') 1)}}{{packageName}}{{else}}{{depName}}/{{depName}}{{/if}}" + } + ], + "customManagers": [ + { + "customType": "regex", + "description": "Process Go packages in mise.toml", + "fileMatch": [".mise.toml", "mise.toml"], + "matchStrings": [ + "\"go:(?[\\w\\-\\/\\.]+)\" = \\[?\"(?[\\d\\.]+)\"" + ], + "datasourceTemplate": "go", + "versioningTemplate": "semver" + }, + { + "customType": "regex", + "description": "Process cargo packages in mise.toml", + "fileMatch": [".mise.toml", "mise.toml"], + "matchStrings": [ + "\"cargo:(?[\\w\\-\\/]+)\" = \\[?\"(?[\\d\\.]+)\"" + ], + "datasourceTemplate": "crate", + "versioningTemplate": "cargo" + }, + { + "customType": "regex", + "description": "Process npm packages in mise.toml", + "fileMatch": [".mise.toml", "mise.toml"], + "matchStrings": [ + "\"npm:(?@?[\\w\\-\\/]+)\" = \\[?\"(?[\\d\\.]+)\"" + ], + "datasourceTemplate": "npm", + "versioningTemplate": "semver" + }, + { + "customType": "regex", + "description": "Process pipx packages in mise.toml", + "fileMatch": [".mise.toml", "mise.toml"], + "matchStrings": [ + "\"pipx:(?[\\w\\-\\.]+)\" = \\[?\"(?[\\d\\.]+|latest)\"" + ], + "datasourceTemplate": "pypi", + "versioningTemplate": "pep440" + }, + { + "customType": "regex", + "description": "Process aqua and ubi packages in mise.toml", + "fileMatch": [".mise.toml", "mise.toml"], + "matchStrings": [ + "^(?:\"aqua:|\"ubi:)?(?[\\w\\-\\/]+)\"? = \\[?\"(?[\\d\\.]+|latest|v[\\d\\.]+)\"" + ], + "datasourceTemplate": "github-releases", + "versioningTemplate": "semver", + "extractVersionTemplate": "^v?(?.*)$" + } + ] +}