Skip to content

Commit 1c2b98d

Browse files
chore(config): migrate renovate config (#195)
* chore(config): migrate config .github/renovate.json5 * update * update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: mozillazg <mozillazg101@gmail.com>
1 parent bd671fd commit 1c2b98d

File tree

1 file changed

+124
-119
lines changed

1 file changed

+124
-119
lines changed

.github/renovate.json5

Lines changed: 124 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +1,167 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended",
5-
":gitSignOff",
6-
"helpers:pinGitHubActionDigests"
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:recommended',
5+
':gitSignOff',
6+
'helpers:pinGitHubActionDigests',
77
],
88
// This ensures that the gitAuthor and gitSignOff fields match
9-
"gitAuthor": "renovate[bot] <bot@renovateapp.com>",
10-
"includePaths": [
11-
".github/workflows/**",
12-
".github/**",
13-
".github/build.Dockerfile",
14-
"go.mod",
15-
"go.sum",
16-
"Dockerfile",
9+
gitAuthor: 'renovate[bot] <bot@renovateapp.com>',
10+
includePaths: [
11+
'.github/workflows/**',
12+
'.github/**',
13+
'.github/build.Dockerfile',
14+
'go.mod',
15+
'go.sum',
16+
'Dockerfile',
1717
],
18-
"postUpdateOptions": [
19-
"gomodTidy"
18+
postUpdateOptions: [
19+
'gomodTidy',
2020
],
21-
"pinDigests": true,
22-
"ignorePresets": [
23-
":prHourlyLimit2",
21+
pinDigests: true,
22+
ignorePresets: [
23+
':prHourlyLimit2',
2424
],
25-
"ignoreDeps": [
26-
"github.com/mozillazg/gopacket",
27-
"github.com/mozillazg/pktdump",
28-
"github.com/cilium/ebpf",
29-
"k8s.io/cri-api",
30-
"k8s.io/cri-client",
31-
"github.com/containerd/errdefs",
32-
"github.com/mandiant/GoReSym",
25+
ignoreDeps: [
26+
'github.com/mozillazg/ebpf',
27+
'github.com/mozillazg/gopacket',
28+
'github.com/mozillazg/pktdump',
29+
'github.com/mozillazg/cri-api',
30+
'github.com/mozillazg/cri-client',
31+
'github.com/containerd/errdefs',
32+
'github.com/mandiant/GoReSym',
3333
],
34-
"separateMajorMinor": true,
35-
"separateMultipleMajor": true,
36-
"separateMinorPatch": true,
37-
"pruneStaleBranches": true,
38-
"baseBranches": [
39-
"master"
34+
separateMajorMinor: true,
35+
separateMultipleMajor: true,
36+
separateMinorPatch: true,
37+
pruneStaleBranches: true,
38+
baseBranches: [
39+
'master',
4040
],
41-
"vulnerabilityAlerts": {
42-
"enabled": true
41+
vulnerabilityAlerts: {
42+
enabled: true,
4343
},
44-
"labels": [
45-
"dependencies",
46-
"renovate/stop-updating",
44+
labels: [
45+
'dependencies',
46+
'renovate/stop-updating',
4747
],
48-
"stopUpdatingLabel": "renovate/stop-updating",
49-
"packageRules": [
48+
stopUpdatingLabel: 'renovate/stop-updating',
49+
packageRules: [
5050
{
51-
"enabled": false,
52-
"matchPackageNames": [
53-
"quay.io/lvh-images/kernel-images",
51+
enabled: false,
52+
matchPackageNames: [
53+
'quay.io/lvh-images/kernel-images',
5454
],
55-
"matchUpdateTypes": [
56-
"major",
57-
"minor"
55+
matchUpdateTypes: [
56+
'major',
57+
'minor',
5858
],
5959
},
6060
{
61-
"groupName": "all github action dependencies",
62-
"groupSlug": "all-github-action",
63-
"extends": ["schedule:monthly"],
64-
"matchPaths": [
65-
".github/workflows/**"
66-
],
67-
"matchUpdateTypes": [
68-
"major",
69-
"minor",
70-
"digest",
71-
"patch",
72-
"pin",
73-
"pinDigest"
74-
]
61+
groupName: 'all github action dependencies',
62+
groupSlug: 'all-github-action',
63+
extends: [
64+
'schedule:monthly',
65+
],
66+
matchFileNames: [
67+
'.github/workflows/**',
68+
],
69+
matchUpdateTypes: [
70+
'major',
71+
'minor',
72+
'digest',
73+
'patch',
74+
'pin',
75+
'pinDigest',
76+
],
7577
},
7678
{
77-
"groupName": "all go dependencies master",
78-
"groupSlug": "all-go-deps-master",
79-
"extends": ["schedule:monthly"],
80-
"matchFiles": [
81-
"go.mod",
82-
"go.sum"
83-
],
84-
"postUpdateOptions": [
85-
// update source import paths on major updates
86-
"gomodUpdateImportPaths",
87-
],
88-
"matchUpdateTypes": [
89-
"major",
90-
"minor",
91-
"digest",
92-
"patch",
93-
"pin",
94-
"pinDigest"
95-
],
96-
"matchBaseBranches": [
97-
"master"
79+
groupName: 'all go dependencies master',
80+
groupSlug: 'all-go-deps-master',
81+
extends: [
82+
'schedule:monthly',
83+
],
84+
matchFileNames: [
85+
'go.mod',
86+
'go.sum',
87+
],
88+
postUpdateOptions: [
89+
// update source import paths on major updates
90+
'gomodUpdateImportPaths',
91+
],
92+
matchUpdateTypes: [
93+
'major',
94+
'minor',
95+
'digest',
96+
'patch',
97+
'pin',
98+
'pinDigest',
99+
],
100+
matchBaseBranches: [
101+
'master',
98102
],
99103
},
100104
{
101-
"groupName": "Go",
102-
"extends": ["schedule:monthly"],
103-
"matchDepNames": [
104-
"go",
105-
"docker.io/library/golang"
105+
groupName: 'Go',
106+
extends: [
107+
'schedule:monthly',
108+
],
109+
matchDepNames: [
110+
'go',
111+
'docker.io/library/golang',
106112
],
107113
},
108114
{
109-
// Avoid updating patch releases of golang in go.mod
110-
"enabled": "false",
111-
"matchFiles": [
112-
"go.mod",
115+
enabled: false,
116+
matchFileNames: [
117+
'go.mod',
118+
],
119+
matchDepNames: [
120+
'go',
113121
],
114-
"matchDepNames": [
115-
"go"
122+
matchDatasources: [
123+
'golang-version',
116124
],
117-
"matchDatasources": [
118-
"golang-version"
125+
matchUpdateTypes: [
126+
'patch',
119127
],
120-
"matchUpdateTypes": [
121-
"patch"
128+
matchBaseBranches: [
129+
'master',
122130
],
123-
"matchBaseBranches": [
124-
"master"
125-
]
126131
},
127132
{
128-
"matchDepNames": [
129-
"quay.io/lvh-images/kernel-images",
133+
matchDepNames: [
134+
'quay.io/lvh-images/kernel-images',
130135
],
131-
"versioning": "regex:^((?<compatibility>[a-z0-9-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$"
136+
versioning: 'regex:^((?<compatibility>[a-z0-9-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$',
132137
},
133138
{
134-
"groupName": "all lvh-images main",
135-
"groupSlug": "all-lvh-images-main",
136-
"matchPackageNames": [
137-
"quay.io/lvh-images/kernel-images",
139+
groupName: 'all lvh-images main',
140+
groupSlug: 'all-lvh-images-main',
141+
matchPackageNames: [
142+
'quay.io/lvh-images/kernel-images',
138143
],
139-
"matchUpdateTypes": [
140-
"digest",
141-
"patch",
142-
"pin",
143-
"pinDigest"
144+
matchUpdateTypes: [
145+
'digest',
146+
'patch',
147+
'pin',
148+
'pinDigest',
144149
],
145150
},
146151
],
147-
"customManagers": [
152+
customManagers: [
148153
{
149-
"customType": "regex",
150-
"fileMatch": [
151-
"^\\.github/workflows/[^/]+\\.ya?ml$",
154+
customType: 'regex',
155+
fileMatch: [
156+
'^\\.github/workflows/[^/]+\\.ya?ml$',
152157
],
153158
// This regex manages version strings in GitHub actions workflow files,
154159
// similar to the examples shown here:
155160
// https://docs.renovatebot.com/modules/manager/regex/#advanced-capture
156-
"matchStrings": [
157-
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)",
158-
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ ['\"]?(?<currentValue>[^'\"\\s]*)"
159-
]
161+
matchStrings: [
162+
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)',
163+
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ [\'"]?(?<currentValue>[^\'"\\s]*)',
164+
],
160165
},
161-
]
166+
],
162167
}

0 commit comments

Comments
 (0)