Skip to content

Commit ca6f636

Browse files
chore(config): migrate config renovate.json5
1 parent 584186d commit ca6f636

File tree

1 file changed

+63
-86
lines changed

1 file changed

+63
-86
lines changed

renovate.json5

+63-86
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,81 @@
11
{
2-
"extends": [
3-
"config:base",
4-
":semanticCommits",
2+
extends: [
3+
'config:recommended',
4+
':semanticCommits',
55
],
6-
// Renovate Regex Manager Configuration
7-
//
8-
// A slight variation on the pattern documented within Renovate's docs:
9-
//
10-
// => https://docs.renovatebot.com/modules/manager/regex/
11-
//
12-
// This powers a mechanism that allows Renovate (the package dependency
13-
// manager that we use within this repository) to bump packages that live
14-
// outside of typical package manifests (e.g., `package.json`) and instead
15-
// any number of files.
16-
//
17-
// This pattern can be conceivably adapted to any pattern to allow the
18-
// "Renovation" of nearly anything. This is largely what Renovate does
19-
// behind the scenes for various datasources anyhow (e.g., Dockerfiles).
20-
//
21-
// You can find a list of data-source specific details on this page:
22-
//
23-
// => https://docs.renovatebot.com/modules/datasource/
24-
//
25-
"regexManagers": [
6+
customManagers: [
267
{
27-
"fileMatch": [
28-
"^\\.tool-versions$",
29-
"(^|/)Dockerfile[^/]*$",
30-
"^rust-toolchain\\.toml$",
31-
"^docs/.*?\\.mdx$"
8+
customType: 'regex',
9+
fileMatch: [
10+
'^\\.tool-versions$',
11+
'(^|/)Dockerfile[^/]*$',
12+
'^rust-toolchain\\.toml$',
13+
'^docs/.*?\\.mdx$',
3214
],
33-
"matchStrings": [
34-
"(#|<!--)\\s*renovate-automation: rustc version\\s*(?:-->)?\\n[^.]*?(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)\\b"
15+
matchStrings: [
16+
'(#|<!--)\\s*renovate-automation: rustc version\\s*(?:-->)?\\n[^.]*?(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)\\b',
3517
],
36-
"depNameTemplate": "rust",
37-
"datasourceTemplate": "docker"
38-
}
18+
depNameTemplate: 'rust',
19+
datasourceTemplate: 'docker',
20+
},
3921
],
40-
"packageRules": [
41-
// Don't do `rust` image updates on Dockerfiles since they'll we want them
42-
// managed/grouped into the package rule directly after this one. This
43-
// prevents multiple PRs for the same bump, and puts all our Rust version
44-
// bumps together.
22+
packageRules: [
4523
{
46-
"matchPackageNames": ["rust"],
47-
"matchManagers": ["dockerfile"],
48-
"enabled": false
24+
matchPackageNames: [
25+
'rust',
26+
],
27+
matchManagers: [
28+
'dockerfile',
29+
],
30+
enabled: false,
4931
},
5032
{
51-
// This "rust" name maps to the Docker Hub "rust" image above on account
52-
// of the `regexManagers[0]` defined above being `datasourceTemplate` = `docker`.
53-
"matchPackageNames": ["rust"],
54-
"matchManagers": "regex",
55-
"groupName": "rustc",
56-
"branchName": "{{{branchPrefix}}}rustc"
33+
matchPackageNames: [
34+
'rust',
35+
],
36+
matchManagers: 'regex',
37+
groupName: 'rustc',
38+
branchName: '{{{branchPrefix}}}rustc',
5739
},
58-
// Bunch up all non-major dependencies into a single PR. In the common case
59-
// where the upgrades apply cleanly, this causes less noise and is resolved faster
60-
// than starting a bunch of upgrades in parallel for what may turn out to be
61-
// a suite of related packages all released at once.
6240
{
63-
"matchCurrentVersion": ">= 1.0.0",
64-
"matchManagers": [ "cargo", "npm" ],
65-
"excludePackageNames": [],
66-
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
67-
"groupName": "all non-major packages >= 1.0",
68-
"groupSlug": "all-non-major-gte-1.0",
69-
"automerge": true,
41+
matchCurrentVersion: '>= 1.0.0',
42+
matchManagers: [
43+
'cargo',
44+
'npm',
45+
],
46+
matchUpdateTypes: [
47+
'minor',
48+
'patch',
49+
'pin',
50+
'digest',
51+
],
52+
groupName: 'all non-major packages >= 1.0',
53+
groupSlug: 'all-non-major-gte-1.0',
54+
automerge: true,
55+
matchPackageNames: [],
7056
},
71-
// We're currently constrained in our ability to update the `tracing`
72-
// packages to the latest versions because of our usage. As an extension
73-
// of the same concern, we cannot update our `opentelemetry` packages since
74-
// those are tightly intertwined. This exception puts those packages into
75-
// their own group and away from other dep updates until the time that
76-
// those problems are no longer. For more details, see the explainations
77-
// in the `/apollo-router/Cargo.toml` file around the declarations for
78-
// `^opentelemetry` and `^tracing` packages.
7957
{
80-
"matchManagers": [
81-
"cargo"
58+
matchManagers: [
59+
'cargo',
8260
],
83-
"matchPackagePatterns": [
84-
"^tracing",
85-
"^opentelemetry",
61+
groupName: 'cargo tracing packages',
62+
groupSlug: 'cargo-tracing-packages',
63+
dependencyDashboardApproval: true,
64+
matchPackageNames: [
65+
'/^tracing/',
66+
'/^opentelemetry/',
8667
],
87-
"groupName": "cargo tracing packages",
88-
"groupSlug": "cargo-tracing-packages",
89-
"dependencyDashboardApproval": true
9068
},
91-
// Our own `apollo-` packages deserve to get front-and-center treatment.
92-
// We'll put them in their own PR to facilitate workflows that surface
93-
// their changes earlier, and get us dog-fooding them quicker.
94-
// They also have a small proclivity to require more hands-on changes
95-
// since they're pre-0.x and we use them so extensively.
9669
{
97-
"matchPackagePatterns": ["^apollo-"],
98-
"groupName": "apollo-rs crates",
99-
"groupSlug": "rust-apollo-rs-updates",
100-
"matchManagers": ["cargo"],
101-
"automerge": false
102-
}
103-
]
70+
groupName: 'apollo-rs crates',
71+
groupSlug: 'rust-apollo-rs-updates',
72+
matchManagers: [
73+
'cargo',
74+
],
75+
automerge: false,
76+
matchPackageNames: [
77+
'/^apollo-/',
78+
],
79+
},
80+
],
10481
}

0 commit comments

Comments
 (0)