|
1 | 1 | {
|
2 | 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
3 |
| - "extends": ["config:base"], |
| 3 | + "extends": ["config:recommended"], |
4 | 4 | "includePaths": ["package.json", "packages/**", "docusaurus/**", ".github/**"],
|
5 |
| - "ignoreDeps": ["react", "react-dom", "@stylistic/eslint-plugin-ts", "lerna", "@grafana/scenes", "@libs/output", "@libs/version"], |
| 5 | + "ignoreDeps": [ |
| 6 | + "react", |
| 7 | + "react-dom", |
| 8 | + "@stylistic/eslint-plugin-ts", |
| 9 | + "lerna", |
| 10 | + "@grafana/scenes", |
| 11 | + "@libs/output", |
| 12 | + "@libs/version" |
| 13 | + ], |
6 | 14 | "separateMajorMinor": false,
|
7 | 15 | "skipInstalls": false,
|
8 | 16 | "reviewers": ["team:grafana/plugins-platform-frontend"],
|
9 |
| - "enabledManagers": ["regex", "npm", "github-actions"], |
| 17 | + "enabledManagers": ["custom.regex", "npm", "github-actions"], |
10 | 18 | "postUpdateOptions": ["npmDedupe"],
|
11 | 19 | "labels": ["dependencies", "javascript"],
|
12 | 20 | // These custom managers are used to bump dependencies in create-plugin template files
|
13 | 21 | "customManagers": [
|
14 | 22 | {
|
15 | 23 | "customType": "regex",
|
16 |
| - "fileMatch": ["_package.json"], |
17 |
| - "matchStrings": ["\"(?<depName>@grafana/.*)\"[^\"]*:\\s*\"\\^(?<currentValue>.*)\","], |
| 24 | + "managerFilePatterns": ["/_package.json/"], |
| 25 | + "matchStrings": [ |
| 26 | + "\"(?<depName>@grafana/.*)\"[^\"]*:\\s*\"\\^(?<currentValue>.*)\"," |
| 27 | + ], |
18 | 28 | "datasourceTemplate": "npm"
|
19 | 29 | },
|
20 | 30 | {
|
21 | 31 | "customType": "regex",
|
22 |
| - "fileMatch": ["(^|/)(?:docker-)?compose[^/]*\\.ya?ml$"], |
23 |
| - "matchStrings": ["grafana_version:\\s\\$\\{GRAFANA_VERSION:-(?<currentValue>.*)\\}"], |
| 32 | + "managerFilePatterns": ["/(^|/)(?:docker-)?compose[^/]*\\.ya?ml$/"], |
| 33 | + "matchStrings": [ |
| 34 | + "grafana_version:\\s\\$\\{GRAFANA_VERSION:-(?<currentValue>.*)\\}" |
| 35 | + ], |
24 | 36 | "depNameTemplate": "grafana/grafana-enterprise",
|
25 | 37 | "datasourceTemplate": "docker"
|
26 | 38 | }
|
|
32 | 44 | "groupSlug": "all-grafana-patch",
|
33 | 45 | "labels": ["dependencies", "patch"],
|
34 | 46 | "matchCurrentVersion": "!/^0/",
|
35 |
| - "matchPackagePatterns": ["@grafana/*", "grafana/grafana-enterprise"], |
36 |
| - "excludePackageNames": ["@grafana/e2e-selectors"], |
37 |
| - "matchUpdateTypes": ["patch"] |
| 47 | + "matchUpdateTypes": ["patch"], |
| 48 | + "matchPackageNames": [ |
| 49 | + "/@grafana/*/", |
| 50 | + "/grafana/grafana-enterprise/", |
| 51 | + "!@grafana/e2e-selectors" |
| 52 | + ] |
38 | 53 | },
|
39 | 54 | {
|
40 | 55 | "automerge": true,
|
|
44 | 59 | "matchPackageNames": ["@grafana/e2e-selectors"],
|
45 | 60 | "followTag": "modified",
|
46 | 61 | "rangeStrategy": "bump",
|
47 |
| - "matchFileNames": ["packages/plugin-e2e/package.json", "package-lock.json"] |
| 62 | + "matchFileNames": [ |
| 63 | + "packages/plugin-e2e/package.json", |
| 64 | + "package-lock.json" |
| 65 | + ] |
48 | 66 | },
|
49 | 67 | {
|
50 | 68 | "groupName": "grafana dependencies",
|
51 | 69 | "groupSlug": "all-grafana",
|
52 | 70 | "labels": ["dependencies", "release", "patch"],
|
53 |
| - "matchPackagePatterns": ["@grafana/*", "grafana/grafana-enterprise"], |
54 |
| - "excludePackageNames": ["@grafana/e2e-selectors", "@grafana/eslint-config", "@grafana/scenes"], |
55 |
| - "matchUpdateTypes": ["minor", "major"] |
| 71 | + "matchUpdateTypes": ["minor", "major"], |
| 72 | + "matchPackageNames": [ |
| 73 | + "/@grafana/*/", |
| 74 | + "/grafana/grafana-enterprise/", |
| 75 | + "!@grafana/e2e-selectors", |
| 76 | + "!@grafana/eslint-config", |
| 77 | + "!@grafana/scenes" |
| 78 | + ] |
56 | 79 | },
|
57 | 80 | // Docusaurus dependencies have to be grouped together otherwise error out when building website.
|
58 | 81 | {
|
59 | 82 | "groupName": "docusaurus dependencies",
|
60 | 83 | "labels": ["dependencies", "javascript", "no-changelog"],
|
61 |
| - "matchPackagePatterns": ["@?docusaurus"], |
62 |
| - "rangeStrategy": "bump" |
| 84 | + "rangeStrategy": "bump", |
| 85 | + "matchPackageNames": ["/@?docusaurus/"] |
63 | 86 | },
|
64 | 87 | // Auto dependencies should be grouped together to avoid issues
|
65 | 88 | {
|
66 | 89 | "groupName": "auto dependencies",
|
67 | 90 | "labels": ["dependencies", "javascript", "no-changelog"],
|
68 |
| - "matchPackagePatterns": ["^@auto-it", "^auto"] |
| 91 | + "matchPackageNames": ["/^@auto-it/", "/^auto/"] |
69 | 92 | },
|
70 | 93 | {
|
71 | 94 | "automerge": true,
|
72 |
| - "excludePackagePatterns": ["^@?docusaurus", "^@auto-it", "^auto", "@grafana/*"], |
73 | 95 | "groupName": "auto-merged devDependencies",
|
74 | 96 | "groupSlug": "dev-dependencies-automerge",
|
75 | 97 | "labels": ["dependencies", "javascript", "no-changelog"],
|
76 | 98 | "matchCurrentVersion": "!/^0/",
|
77 | 99 | "matchDepTypes": ["devDependencies", "optionalDependencies"],
|
78 |
| - "excludePackageNames": ["@grafana/e2e-selectors"], |
79 |
| - "rangeStrategy": "bump", |
80 |
| - "minimumReleaseAge": "14 days" |
| 100 | + "matchPackageNames": [ |
| 101 | + "!/^@?docusaurus/", |
| 102 | + "!/^@auto-it/", |
| 103 | + "!/^auto/", |
| 104 | + "!/@grafana/*/", |
| 105 | + "!@grafana/e2e-selectors" |
| 106 | + ], |
| 107 | + "minimumReleaseAge": "14 days", |
| 108 | + "rangeStrategy": "bump" |
81 | 109 | },
|
82 | 110 | // patches will only touch the repo lock file so we apply no-changelog to prevent entries in the changelog
|
83 | 111 | // which would be misleading to consumers.
|
84 | 112 | {
|
85 | 113 | "automerge": true,
|
86 |
| - "excludePackagePatterns": ["^@?docusaurus", "@grafana/*"], |
87 | 114 | "groupName": "auto-merged patch dependencies",
|
88 | 115 | "groupSlug": "prod-dependencies-automerge",
|
89 | 116 | "labels": ["dependencies", "javascript", "no-changelog"],
|
90 | 117 | "matchCurrentVersion": "!/^0/",
|
91 | 118 | "matchDepTypes": ["dependencies"],
|
92 | 119 | "matchUpdateTypes": ["patch"],
|
| 120 | + "matchPackageNames": ["!/^@?docusaurus/", "!/@grafana/*/"], |
93 | 121 | "minimumReleaseAge": "14 days"
|
94 | 122 | },
|
95 | 123 | {
|
|
0 commit comments