diff --git a/.renovate/mise.json5 b/.renovate/mise.json5 new file mode 100644 index 00000000..46412d30 --- /dev/null +++ b/.renovate/mise.json5 @@ -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:(?[\\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\\-]+\\/[\\w\\-]+)\"? = \\[?\"(?[\\d\\.]+|latest|v[\\d\\.]+)\"" + ], + "datasourceTemplate": "github-releases", + "versioningTemplate": "semver", + "extractVersionTemplate": "^v?(?.*)$" + } + ] + } diff --git a/.renovaterc.json5 b/.renovaterc.json5 index 8f9747c5..3eac770f 100644 --- a/.renovaterc.json5 +++ b/.renovaterc.json5 @@ -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" ],