Skip to content

Commit 0de652a

Browse files
authored
fix(renovate): group Charon and Docker dependency updates (#461)
## Summary - Group Charon updates into their own PR (`Charon updates`) - Group non-Charon Docker dependencies into a separate PR (`Docker dependency updates`) - GitHub Actions CI updates remain grouped as before Previously Charon and Docker deps were labeled but not grouped, resulting in individual PRs per dependency.
1 parent d8110b1 commit 0de652a

File tree

1 file changed

+19
-42
lines changed

1 file changed

+19
-42
lines changed

.github/renovate.json

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,43 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
],
6-
"enabledManagers": [
7-
"github-actions",
8-
"regex"
9-
],
3+
"extends": ["config:recommended"],
4+
"enabledManagers": ["github-actions", "regex"],
105
"customManagers": [
116
{
127
"customType": "regex",
13-
"fileMatch": [
14-
"^docker-compose\\.yml$",
15-
"^relay/docker-compose\\.yml$"
16-
],
17-
"matchStrings": [
18-
"image:\\s*obolnetwork/charon:\\$\\{CHARON_VERSION:-v?(?<currentValue>[\\w.-]+)}"
19-
],
8+
"fileMatch": ["^docker-compose\\.yml$", "^relay/docker-compose\\.yml$"],
9+
"matchStrings": ["image:\\s*obolnetwork/charon:\\$\\{CHARON_VERSION:-v?(?<currentValue>[\\w.-]+)}"],
2010
"datasourceTemplate": "github-releases",
2111
"depNameTemplate": "ObolNetwork/charon",
2212
"versioningTemplate": "semver"
2313
},
2414
{
2515
"customType": "regex",
26-
"fileMatch": [
27-
"(^|/)docker-compose\\.ya?ml$",
28-
"(^|/)compose[^/]*\\.ya?ml$"
29-
],
30-
"matchStrings": [
31-
"image:\\s*(?<depName>[^:\\s]+):\\$\\{[A-Z_]+:-(?<currentValue>[^}]+)\\}"
32-
],
16+
"fileMatch": ["(^|/)docker-compose\\.ya?ml$", "(^|/)compose[^/]*\\.ya?ml$"],
17+
"matchStrings": ["image:\\s*(?<depName>[^:\\s]+):\\$\\{[A-Z_]+:-(?<currentValue>[^}]+)\\}"],
3318
"datasourceTemplate": "docker"
3419
}
3520
],
3621
"packageRules": [
3722
{
38-
"matchManagers": [
39-
"github-actions"
40-
],
41-
"labels": [
42-
"renovate/github-actions"
43-
],
23+
"description": "GitHub Actions CI updates",
24+
"matchManagers": ["github-actions"],
25+
"labels": ["renovate/github-actions"],
4426
"groupName": "GitHub Actions updates"
4527
},
4628
{
47-
"matchManagers": [
48-
"regex"
49-
],
50-
"matchDepNames": [
51-
"ObolNetwork/charon"
52-
],
53-
"labels": [
54-
"renovate/charon"
55-
]
29+
"description": "Charon updates",
30+
"matchManagers": ["regex"],
31+
"matchDepNames": ["ObolNetwork/charon"],
32+
"labels": ["renovate/charon"],
33+
"groupName": "Charon updates"
5634
},
5735
{
58-
"matchManagers": [
59-
"regex"
60-
],
61-
"labels": [
62-
"renovate/docker"
63-
]
36+
"description": "Docker dependency updates (non-Charon)",
37+
"matchManagers": ["regex"],
38+
"excludeDepNames": ["ObolNetwork/charon"],
39+
"labels": ["renovate/docker"],
40+
"groupName": "Docker dependency updates"
6441
}
6542
]
6643
}

0 commit comments

Comments
 (0)