From 3415a951985fde0fe4952327713fff3707f1a26f Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:32:18 +0900 Subject: [PATCH] fix(src/default.json5): add caret to mise tools shorthands custom managers (#56) * fix(src/default.json5): add caret to mise tools shorthands custom managers * style: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- default.json | 2 +- src/default.json5 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default.json b/default.json index caba5ee..9c6df6f 100644 --- a/default.json +++ b/default.json @@ -1 +1 @@ -{"$schema":"https://docs.renovatebot.com/renovate-schema.json","extends":["config:best-practices",":pinVersions",":automergeMinor",":automergeDigest",":prHourlyLimitNone",":prConcurrentLimitNone","customManagers:biomeVersions"],"labels":["dependencies","{{#unless (equals manager 'regex')}}{{manager}}{{/unless}}"],"customManagers":[{"customType":"regex","description":"Updates mise tools (shorthands)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"undefined","matchStrings":["['\"]?(?[^_:\\s]+?)['\"]? *= *['\"](?\\d.+?)['\"]"]},{"customType":"regex","description":"Updates mise tools (full)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"{{#if (equals datasource 'cargo')}}crate{{else}}{{#if (or (equals datasource 'ubi') (equals datasource 'aqua'))}}github-releases{{else}}{{datasource}}{{/if}}{{/if}}","currentValueTemplate":"{{{replace '^v(.+)$' '$1' currentValue}}}","extractVersionTemplate":"^v?(?.+)","matchStrings":["['\"](?(?.+?):(?.+?))['\"] *= *['\"](?.+?)['\"]"]},{"customType":"regex","description":"Updates min_version in mise config","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"github-releases","depNameTemplate":"mise","packageNameTemplate":"jdx/mise","matchStrings":["min_version = \"(?.+)\""]},{"customType":"regex","description":"Updates mise versions in GitHub Actions","fileMatch":["^\\.github/workflows/.+\\.yml$"],"datasourceTemplate":"github-releases","depNameTemplate":"mise","packageNameTemplate":"jdx/mise","matchStrings":["version: (?.+)"]},{"customType":"regex","fileMatch":["^\\.github/renovate\\.json5$"],"matchStrings":["github>risu729/renovate-config#(?[0-9.]+)"],"datasourceTemplate":"github-releases","depNameTemplate":"risu729/renovate-config"}],"packageRules":[{"matchDepNames":["node"],"ignoreUnstable":false},{"matchDepNames":["mise"],"automerge":true},{"matchCategories":["ci"],"semanticCommitType":"ci"},{"matchFileNames":["mise.toml"],"addLabels":["mise"]},{"matchManagers":["custom.regex"],"matchDepNames":["cargo-binstall"],"overrideDatasource":"crate"},{"matchManagers":["custom.regex"],"matchDepNames":["taplo"],"overrideDatasource":"github-releases","overridePackageName":"tamasfe/taplo"},{"matchManagers":["custom.regex"],"matchDepNames":["aqua:biomejs/biome"],"extractVersion":"^cli-v(?.+)"}]} \ No newline at end of file +{"$schema":"https://docs.renovatebot.com/renovate-schema.json","extends":["config:best-practices",":pinVersions",":automergeMinor",":automergeDigest",":prHourlyLimitNone",":prConcurrentLimitNone","customManagers:biomeVersions"],"labels":["dependencies","{{#unless (equals manager 'regex')}}{{manager}}{{/unless}}"],"customManagers":[{"customType":"regex","description":"Updates mise tools (shorthands)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"undefined","matchStrings":["^['\"]?(?[^_:\\s]+?)['\"]? *= *['\"](?\\d.+?)['\"]"]},{"customType":"regex","description":"Updates mise tools (full)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"{{#if (equals datasource 'cargo')}}crate{{else}}{{#if (or (equals datasource 'ubi') (equals datasource 'aqua'))}}github-releases{{else}}{{datasource}}{{/if}}{{/if}}","currentValueTemplate":"{{{replace '^v(.+)$' '$1' currentValue}}}","extractVersionTemplate":"^v?(?.+)","matchStrings":["['\"](?(?.+?):(?.+?))['\"] *= *['\"](?.+?)['\"]"]},{"customType":"regex","description":"Updates min_version in mise config","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"github-releases","depNameTemplate":"mise","packageNameTemplate":"jdx/mise","matchStrings":["min_version = \"(?.+)\""]},{"customType":"regex","description":"Updates mise versions in GitHub Actions","fileMatch":["^\\.github/workflows/.+\\.yml$"],"datasourceTemplate":"github-releases","depNameTemplate":"mise","packageNameTemplate":"jdx/mise","matchStrings":["version: (?.+)"]},{"customType":"regex","fileMatch":["^\\.github/renovate\\.json5$"],"matchStrings":["github>risu729/renovate-config#(?[0-9.]+)"],"datasourceTemplate":"github-releases","depNameTemplate":"risu729/renovate-config"}],"packageRules":[{"matchDepNames":["node"],"ignoreUnstable":false},{"matchDepNames":["mise"],"automerge":true},{"matchCategories":["ci"],"semanticCommitType":"ci"},{"matchFileNames":["mise.toml"],"addLabels":["mise"]},{"matchManagers":["custom.regex"],"matchDepNames":["cargo-binstall"],"overrideDatasource":"crate"},{"matchManagers":["custom.regex"],"matchDepNames":["taplo"],"overrideDatasource":"github-releases","overridePackageName":"tamasfe/taplo"},{"matchManagers":["custom.regex"],"matchDepNames":["aqua:biomejs/biome"],"extractVersion":"^cli-v(?.+)"}]} \ No newline at end of file diff --git a/src/default.json5 b/src/default.json5 index c67c03e..e23e7f8 100644 --- a/src/default.json5 +++ b/src/default.json5 @@ -27,7 +27,7 @@ datasourceTemplate: "undefined", matchStrings: [ // test: https://regex101.com/r/8grHta - "['\"]?(?[^_:\\s]+?)['\"]? *= *['\"](?\\d.+?)['\"]", + "^['\"]?(?[^_:\\s]+?)['\"]? *= *['\"](?\\d.+?)['\"]", ], }, // renovate does not support backends