diff --git a/.github/renovate-regex.json b/.github/renovate-regex.json new file mode 100644 index 0000000..2220510 --- /dev/null +++ b/.github/renovate-regex.json @@ -0,0 +1,8 @@ +{ + "jq": { + "renovate_datasource": "github-tags", + "renovate_depname": "jqlang/jq", + "renovate_versioning": "regex:^jq-(?\d+)(\.(?\d+))?(\.(?\d+))?$", + "version": "jq-1.6" + } +} diff --git a/.github/renovate.json b/.github/renovate.json index d6c85b7..4f2a60c 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,5 +1,24 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:base"], - "labels": ["dependencies"] + "labels": ["dependencies"], + + "packageRules": [ + { + "enabled": true, + "matchManagers": ["regex"], + "matchUpdateTypes": ["patch", "minor"], + "automerge": true + } + ], + "regexManagers": [ + { + "fileMatch": ["renovate-regex.json$"], + "matchStrings": [ + "\"renovate_datasource\": \"(?.*?)\",\\s \"renovate_depname\": \"(?.*?)\",\\s( \"renovate_versioning\": \"(?.*?)\",\\s)?( \"sha256\": \"(?.*?)\",\\s)? \"version\": \"(?.*?)\"" + ], + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}" + } + ], + "reviewers": ["@chickenandpork"] } diff --git a/.prettierignore b/.prettierignore index dddb06f..e3e4e76 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,5 @@ docs/repositories.md docs/rules.md docs/toolchain.md +# whitespsce matters: a regex is used to parse and automatically update this json +.github/renovate-regex.json