Skip to content

Commit 6f93879

Browse files
deps: renovate-manage the anolis version pin; bump to current
schemas/anolis-version.json was hand-maintained and stale (anolis 0.1.5 / protocol 1.1.4 vs live 0.1.26 / 1.6.0). Keep the pin — it is this repo's own dependency declaration, giving reviewable bumps and reproducible builds — but stop maintaining it by hand: - add regex customManagers (github-releases datasource) so Renovate bumps both keys, grouped into one PR - bump to anolis 0.1.26 / anolis-protocol 1.6.0; full docs build verified against the new schema tarballs and protocol tag Closes #25.
1 parent 1476988 commit 6f93879

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

renovate.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["local>anolishq/renovate-config"]
3+
"extends": ["local>anolishq/renovate-config"],
4+
"customManagers": [
5+
{
6+
"customType": "regex",
7+
"description": "Bump the anolis schema-injection pin",
8+
"managerFilePatterns": ["/^schemas/anolis-version\\.json$/"],
9+
"matchStrings": ["\"anolis_version\":\\s*\"(?<currentValue>[^\"]+)\""],
10+
"depNameTemplate": "anolishq/anolis",
11+
"datasourceTemplate": "github-releases",
12+
"extractVersionTemplate": "^v?(?<version>.+)$"
13+
},
14+
{
15+
"customType": "regex",
16+
"description": "Bump the anolis-protocol reference pin",
17+
"managerFilePatterns": ["/^schemas/anolis-version\\.json$/"],
18+
"matchStrings": ["\"anolis_protocol_version\":\\s*\"(?<currentValue>[^\"]+)\""],
19+
"depNameTemplate": "anolishq/anolis-protocol",
20+
"datasourceTemplate": "github-releases",
21+
"extractVersionTemplate": "^v?(?<version>.+)$"
22+
}
23+
],
24+
"packageRules": [
25+
{
26+
"description": "Group anolis version-pin updates into a single PR",
27+
"matchManagers": ["custom.regex"],
28+
"groupName": "anolis version pin",
29+
"commitMessagePrefix": "deps:",
30+
"semanticCommitType": "deps"
31+
}
32+
]
433
}

schemas/anolis-version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"anolis_version": "0.1.5",
3-
"anolis_protocol_version": "1.1.4"
2+
"anolis_version": "0.1.26",
3+
"anolis_protocol_version": "1.6.0"
44
}

0 commit comments

Comments
 (0)