feat(renovate/mise): add Go, Cargo, non-specific package managers

This commit is contained in:
JJGadgets
2025-05-10 01:01:02 +08:00
parent c59166d4ae
commit 096f13cb1e
2 changed files with 67 additions and 1 deletions

65
.renovate/mise.json5 Normal file
View File

@@ -0,0 +1,65 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
//"mise": { "enabled": false },
"packageRules": [
{
"matchFileNames": [".mise.toml", "mise.toml"],
"semanticCommitType": "chore",
"semanticCommitScope": "mise",
"addLabels": ["renovate/mise"]
}
],
"customManagers": [
{
"customType": "regex",
"description": "Process Go packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"go:(?<packageName>[\\w\\-\\/]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
],
"datasourceTemplate": "go",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"description": "Process cargo packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"cargo:(?<packageName>[\\w\\-\\/]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
],
"datasourceTemplate": "crate",
"versioningTemplate": "cargo"
},
{
"customType": "regex",
"description": "Process npm packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"npm:(?<packageName>@?[\\w\\-\\/]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
],
"datasourceTemplate": "npm",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"description": "Process pipx packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"pipx:(?<packageName>[\\w\\-\\.]+)\" = \\[?\"(?<currentValue>[\\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:)?(?<packageName>[\\w\\-]+\\/[\\w\\-]+)\"? = \\[?\"(?<currentValue>[\\d\\.]+|latest|v[\\d\\.]+)\""
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver",
"extractVersionTemplate": "^v?(?<version>.*)$"
}
]
}

View File

@@ -19,7 +19,8 @@
"github>JJGadgets/Biohazard//.renovate/commitMessage.json5",
"github>JJGadgets/Biohazard//.renovate/labels.json5",
"github>JJGadgets/Biohazard//.renovate/security.json5",
"github>mirceanton/renovate-config//custom-manager-mise.json5#563f485db859084f436e7ce9ff30587263fdec12",
"github>JJGadgets/Biohazard//.renovate/mise.json5",
//"github>mirceanton/renovate-config//custom-manager-mise.json5#563f485db859084f436e7ce9ff30587263fdec12",
"security:openssf-scorecard",
"helpers:pinGitHubActionDigests"
],