Skip to content

Commit

Permalink
feat: autoupdate JQ info intended to seed default values
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenandpork committed Nov 7, 2023
1 parent 6752b15 commit 52856e7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/renovate-regex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"jq": {
"renovate_datasource": "github-tags",
"renovate_depname": "jqlang/jq",
"renovate_versioning": "regex:^jq-(?<major>\d+)(\.(?<minor>\d+))?(\.(?<patch>\d+))?$",
"version": "jq-1.6"
}
}
21 changes: 20 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -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\": \"(?<datasource>.*?)\",\\s \"renovate_depname\": \"(?<depName>.*?)\",\\s( \"renovate_versioning\": \"(?<versioning>.*?)\",\\s)?( \"sha256\": \"(?<currentDigest>.*?)\",\\s)? \"version\": \"(?<currentValue>.*?)\""
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}"
}
],
"reviewers": ["@chickenandpork"]
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 52856e7

Please sign in to comment.