From 669ddc8eb8f0749778b7825d656fa778dfb39c47 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Thu, 2 Jan 2025 15:46:02 +0900 Subject: [PATCH] style: apply autofix --- .github/renovate.json5 | 14 ++++---------- default.json | 2 +- src/default.json5 | 8 ++------ 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index fbcc117..4b40680 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -5,17 +5,11 @@ // ref: https://docs.renovatebot.com/modules/manager/regex/#advanced-capture customManagers: [ { - customType: "regex", - fileMatch: [ - "^README.md$", - ], - matchStrings: [ - "github>risu729/renovate-config#(?[0-9.]+)", - ], + fileMatch: ["^README.md$"], + matchStrings: ["github>risu729/renovate-config#(?[0-9.]+)"], datasourceTemplate: "github-releases", depNameTemplate: "risu729/renovate-config", - - } - ] + }, + ], } diff --git a/default.json b/default.json index 0a08c72..01b9056 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 tool versions in mise.toml (default registry)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"{{#unless datasource}}github-releases{{else}}{{datasource}}{{/unless}}","matchStrings":["# renovate:(?: datasource=(?.+?))?(?: packageName=(?.+?))?(?: versioning=(?.+?))?(?: extractVersion=(?.+?))?\\n\"?(?[^:]+?)\"? *= *\"(?.+?)\""]},{"customType":"regex","description":"Updates tool versions in mise.toml (Cargo backend)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"crate","matchStrings":["\"cargo:(?.+?)\" *= *\"(?.+?)\""]},{"customType":"regex","description":"Updates tool versions in mise.toml (npm backend)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"npm","matchStrings":["\"npm:(?.+?)\" *= *\"(?.+?)\""]},{"customType":"regex","description":"Updates tool versions in mise.toml (ubi, aqua backend)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"github-releases","matchStrings":["(?:# renovate: extractVersion=(?.+?)\\n)?\"(?:ubi|aqua):(?.+?)\" *= *\".*?(?\\d+\\..+?)\""]},{"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: (?.+)"]}],"packageRules":[{"matchDepNames":["node"],"ignoreUnstable":false},{"matchDepNames":["mise"],"automerge":true},{"matchCategories":["ci"],"semanticCommitType":"ci"},{"matchFileNames":["mise.toml"],"addLabels":["mise"]}]} \ 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 tool versions in mise.toml (default registry)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"{{#unless datasource}}github-releases{{else}}{{datasource}}{{/unless}}","matchStrings":["# renovate:(?: datasource=(?.+?))?(?: packageName=(?.+?))?(?: versioning=(?.+?))?(?: extractVersion=(?.+?))?\\n\"?(?[^:]+?)\"? *= *\"(?.+?)\""]},{"customType":"regex","description":"Updates tool versions in mise.toml (Cargo backend)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"crate","matchStrings":["\"cargo:(?.+?)\" *= *\"(?.+?)\""]},{"customType":"regex","description":"Updates tool versions in mise.toml (npm backend)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"npm","matchStrings":["\"npm:(?.+?)\" *= *\"(?.+?)\""]},{"customType":"regex","description":"Updates tool versions in mise.toml (ubi, aqua backend)","fileMatch":["(^|/)\\.?mise\\.toml$","(^|/)\\.?mise/config\\.toml$"],"datasourceTemplate":"github-releases","matchStrings":["(?:# renovate: extractVersion=(?.+?)\\n)?\"(?:ubi|aqua):(?.+?)\" *= *\".*?(?\\d+\\..+?)\""]},{"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"]}]} \ No newline at end of file diff --git a/src/default.json5 b/src/default.json5 index cdb4151..0537048 100644 --- a/src/default.json5 +++ b/src/default.json5 @@ -84,12 +84,8 @@ // support renovate config presets { customType: "regex", - fileMatch: [ - "^(\\.github)/?renovate\\.json5?$", - ], - matchStrings: [ - "github>risu729/renovate-config#(?[0-9.]+)", - ], + fileMatch: ["^(\\.github)/?renovate\\.json5?$"], + matchStrings: ["github>risu729/renovate-config#(?[0-9.]+)"], datasourceTemplate: "github-releases", depNameTemplate: "risu729/renovate-config", },