|
1 | 1 | {
|
2 |
| - "extends": [ |
3 |
| - "config:base", |
4 |
| - ":semanticCommits", |
| 2 | + extends: [ |
| 3 | + 'config:recommended', |
| 4 | + ':semanticCommits', |
5 | 5 | ],
|
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: [ |
26 | 7 | {
|
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$', |
32 | 14 | ],
|
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', |
35 | 17 | ],
|
36 |
| - "depNameTemplate": "rust", |
37 |
| - "datasourceTemplate": "docker" |
38 |
| - } |
| 18 | + depNameTemplate: 'rust', |
| 19 | + datasourceTemplate: 'docker', |
| 20 | + }, |
39 | 21 | ],
|
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: [ |
45 | 23 | {
|
46 |
| - "matchPackageNames": ["rust"], |
47 |
| - "matchManagers": ["dockerfile"], |
48 |
| - "enabled": false |
| 24 | + matchPackageNames: [ |
| 25 | + 'rust', |
| 26 | + ], |
| 27 | + matchManagers: [ |
| 28 | + 'dockerfile', |
| 29 | + ], |
| 30 | + enabled: false, |
49 | 31 | },
|
50 | 32 | {
|
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', |
57 | 39 | },
|
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. |
62 | 40 | {
|
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: [], |
70 | 56 | },
|
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. |
79 | 57 | {
|
80 |
| - "matchManagers": [ |
81 |
| - "cargo" |
| 58 | + matchManagers: [ |
| 59 | + 'cargo', |
82 | 60 | ],
|
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/', |
86 | 67 | ],
|
87 |
| - "groupName": "cargo tracing packages", |
88 |
| - "groupSlug": "cargo-tracing-packages", |
89 |
| - "dependencyDashboardApproval": true |
90 | 68 | },
|
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. |
96 | 69 | {
|
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 | + ], |
104 | 81 | }
|
0 commit comments