From ba8264290dc47373503d82a681c8a32cad498e56 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:26:40 +0900 Subject: [PATCH] fix(src/default.json5): remove extractVerisonTemplate because it cannot be overridden (#59) * fix(src/default.json5): remove extractVerisonTemplate because it cannot be overridden * style: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- default.json | 2 +- mise.toml | 2 +- src/default.json5 | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/default.json b/default.json index 9c6df6f..4f68ef4 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}}}","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/mise.toml b/mise.toml index a348d2c..ece135b 100644 --- a/mise.toml +++ b/mise.toml @@ -9,7 +9,7 @@ node = "23.5.0" cargo-binstall = "1.10.19" # cspell:ignore binstall uv = "0.5.14" "npm:semantic-release" = "24.2.1" -"aqua:biomejs/biome" = "1.9.4" +"aqua:biomejs/biome" = "1.9.3" actionlint = "1.7.6" # required for actionlint shellcheck = "0.10.0" diff --git a/src/default.json5 b/src/default.json5 index 3e79283..9566ac3 100644 --- a/src/default.json5 +++ b/src/default.json5 @@ -41,7 +41,6 @@ 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: [ // test: https://regex101.com/r/K6Imdx "['\"](?(?.+?):(?.+?))['\"] *= *['\"](?.+?)['\"]",