Skip to content

Commit 07d8809

Browse files
chore(config): migrate config .github/renovate.json5
1 parent 23cd4cb commit 07d8809

1 file changed

Lines changed: 105 additions & 64 deletions

File tree

.github/renovate.json5

Lines changed: 105 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,143 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
extends: [
4-
"config:base",
5-
":gitSignOff", // Add commit Sign-Off for renovate commits
4+
'config:recommended',
5+
':gitSignOff',
6+
],
7+
enabledManagers: [
8+
'gomod',
9+
'github-actions',
10+
'npm',
11+
],
12+
baseBranchPatterns: [
13+
'main',
614
],
7-
8-
// Allow only certain package managers and implicitly disable all others
9-
enabledManagers: ["gomod", "github-actions", "npm"],
10-
11-
// Monitored branches
12-
baseBranches: ["main"],
1315
prConcurrentLimit: 10,
1416
prHourlyLimit: 0,
15-
16-
postUpdateOptions: ["gomodTidy"],
17-
18-
// Don't separate major, minor and patch in different PRs
17+
postUpdateOptions: [
18+
'gomodTidy',
19+
],
1920
separateMajorMinor: false,
2021
separateMinorPatch: false,
21-
22-
labels: ["dependencies"],
23-
24-
// Enabling security updates based on GitHub's Dependabot-style security alerts
22+
labels: [
23+
'dependencies',
24+
],
2525
vulnerabilityAlerts: {
2626
enabled: true,
2727
},
28-
2928
packageRules: [
3029
{
31-
matchManagers: ["npm"],
32-
addLabels: ["javascript"],
30+
matchManagers: [
31+
'npm',
32+
],
33+
addLabels: [
34+
'javascript',
35+
],
3336
},
34-
35-
// Automerge npm non-major updates
3637
{
37-
matchManagers: ["npm"],
38-
matchUpdateTypes: ["minor", "patch"],
39-
matchCurrentVersion: "!/^0/", // exclude pre-1.0.0 versions
38+
matchManagers: [
39+
'npm',
40+
],
41+
matchUpdateTypes: [
42+
'minor',
43+
'patch',
44+
],
45+
matchCurrentVersion: '!/^0/',
4046
automerge: true,
41-
automergeType: "pr",
47+
automergeType: 'pr',
4248
},
43-
4449
{
45-
matchManagers: ["npm"],
46-
matchPackageNames: ["@types/node"],
47-
matchUpdateTypes: ["major"],
50+
matchManagers: [
51+
'npm',
52+
],
53+
matchPackageNames: [
54+
'@types/node',
55+
],
56+
matchUpdateTypes: [
57+
'major',
58+
],
4859
enabled: false,
4960
},
50-
51-
// Disable indirect go dependencies updates, resource: https://github.com/renovatebot/renovate/discussions/35225#discussioncomment-13666269
5261
{
53-
matchManagers: ["gomod"],
54-
matchDepTypes: ["indirect"],
62+
matchManagers: [
63+
'gomod',
64+
],
65+
matchDepTypes: [
66+
'indirect',
67+
],
5568
enabled: false,
5669
},
57-
5870
{
59-
matchManagers: ["gomod"],
60-
addLabels: ["go"],
71+
matchManagers: [
72+
'gomod',
73+
],
74+
addLabels: [
75+
'go',
76+
],
6177
},
62-
6378
{
64-
matchManagers: ["gomod"],
65-
matchPackagePrefixes: ["k8s.io/"],
66-
matchUpdateTypes: ["major", "minor"],
67-
enabled: false, // only enable patch updates
79+
matchManagers: [
80+
'gomod',
81+
],
82+
matchUpdateTypes: [
83+
'major',
84+
'minor',
85+
],
86+
enabled: false,
87+
matchPackageNames: [
88+
'k8s.io/{/,}**',
89+
],
6890
},
69-
7091
{
71-
matchManagers: ["gomod"],
72-
matchPackagePrefixes: ["k8s.io/"],
73-
matchUpdateTypes: ["patch"],
74-
groupName: "k8s",
75-
groupSlug: "k8s",
92+
matchManagers: [
93+
'gomod',
94+
],
95+
matchUpdateTypes: [
96+
'patch',
97+
],
98+
groupName: 'k8s',
99+
groupSlug: 'k8s',
100+
matchPackageNames: [
101+
'k8s.io/{/,}**',
102+
],
76103
},
77-
78104
{
79-
matchManagers: ["gomod"],
80-
matchPackageNames: ["k8s.io/utils"],
81-
enabled: false, // k8s.io/utils digest should be updated when other k8s.io dependencies are updated, and not independently
105+
matchManagers: [
106+
'gomod',
107+
],
108+
matchPackageNames: [
109+
'k8s.io/utils',
110+
],
111+
enabled: false,
82112
},
83-
84113
{
85-
matchManagers: ["gomod"],
86-
matchPackagePrefixes: ["golang.org/x/"],
87-
groupName: "golang.org/x",
88-
groupSlug: "golang.org/x",
114+
matchManagers: [
115+
'gomod',
116+
],
117+
groupName: 'golang.org/x',
118+
groupSlug: 'golang.org/x',
119+
matchPackageNames: [
120+
'golang.org/x/{/,}**',
121+
],
89122
},
90-
91123
{
92-
matchManagers: ["github-actions"],
93-
addLabels: ["github_actions"],
124+
matchManagers: [
125+
'github-actions',
126+
],
127+
addLabels: [
128+
'github_actions',
129+
],
94130
},
95-
96131
{
97-
matchManagers: ["github-actions"],
98-
matchPackageNames: ["actions/node-versions"],
99-
matchUpdateTypes: ["major"],
132+
matchManagers: [
133+
'github-actions',
134+
],
135+
matchPackageNames: [
136+
'actions/node-versions',
137+
],
138+
matchUpdateTypes: [
139+
'major',
140+
],
100141
enabled: false,
101142
},
102143
],

0 commit comments

Comments
 (0)