Skip to content

Commit 3ff02cd

Browse files
tommysituclaude
andcommitted
ci(renovate): add config to automate Go runtime version bumps
Adds a focused Renovate config that groups all Go-version touchpoints (go.mod, Dockerfile, cimg/go in CircleCI, CONTRIBUTING.md, CLAUDE.md) into a single weekly PR per Go release. All other dependency updates are disabled by default to avoid PR noise; can be broadened later. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 290ad24 commit 3ff02cd

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/renovate.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"timezone": "Europe/London",
7+
"schedule": [
8+
"before 6am on monday"
9+
],
10+
"labels": [
11+
"dependencies"
12+
],
13+
"customManagers": [
14+
{
15+
"customType": "regex",
16+
"description": "Update cimg/go image in CircleCI config",
17+
"fileMatch": [
18+
"^\\.circleci/config\\.yml$"
19+
],
20+
"matchStrings": [
21+
"cimg/go:(?<currentValue>\\d+\\.\\d+\\.\\d+)"
22+
],
23+
"datasourceTemplate": "docker",
24+
"depNameTemplate": "cimg/go",
25+
"versioningTemplate": "docker"
26+
},
27+
{
28+
"customType": "regex",
29+
"description": "Update Go version mentioned in Markdown docs",
30+
"fileMatch": [
31+
"^CONTRIBUTING\\.md$",
32+
"^CLAUDE\\.md$"
33+
],
34+
"matchStrings": [
35+
"Go (?<currentValue>\\d+\\.\\d+\\.\\d+)"
36+
],
37+
"datasourceTemplate": "golang-version",
38+
"depNameTemplate": "go"
39+
}
40+
],
41+
"packageRules": [
42+
{
43+
"description": "Disable all dependency updates by default; only Go runtime is enabled below",
44+
"matchPackageNames": [
45+
"*"
46+
],
47+
"enabled": false
48+
},
49+
{
50+
"description": "Enable and group all Go runtime version bumps into one PR",
51+
"matchPackageNames": [
52+
"go",
53+
"golang",
54+
"cimg/go"
55+
],
56+
"enabled": true,
57+
"groupName": "Go",
58+
"commitMessageTopic": "Go",
59+
"labels": [
60+
"go",
61+
"dependencies"
62+
]
63+
}
64+
]
65+
}

0 commit comments

Comments
 (0)