Skip to content

Commit 5aed579

Browse files
chore(config): migrate Renovate config (#2426)
The Renovate config in this repository needs migrating. Typically this is because one or more configuration options you are using have been renamed. You don't need to merge this PR right away, because Renovate will continue to migrate these fields internally each time it runs. But later some of these fields may be fully deprecated and the migrations removed. So it's a good idea to merge this migration PR soon. #### [PLEASE NOTE](https://docs.renovatebot.com/configuration-options#configmigration): JSON5 config file migrated! All comments & trailing commas were removed. 🔕 **Ignore**: Close this PR and you won't be reminded about config migration again, but one day your current config may no longer be valid. ❓ Got questions? Does something look wrong to you? Please don't hesitate to [request help here](https://redirect.github.com/renovatebot/renovate/discussions). --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/prometheus/client_java). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent f0b4020 commit 5aed579

1 file changed

Lines changed: 106 additions & 60 deletions

File tree

.github/renovate.json5

Lines changed: 106 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,137 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["config:best-practices", "config:recommended", "github>grafana/flint#v0.22.11"],
4-
platformCommit: "enabled",
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:best-practices',
5+
'config:recommended',
6+
'github>grafana/flint#v0.22.11',
7+
],
8+
platformCommit: 'enabled',
59
automerge: true,
610
ignorePaths: [
7-
"**/simpleclient-archive/**",
11+
'**/simpleclient-archive/**',
812
// old projects
913
// agent resources packages an OTel API that is the minimum required API version
10-
"**/prometheus-metrics-exporter-opentelemetry-otel-agent-resources/pom.xml",
14+
'**/prometheus-metrics-exporter-opentelemetry-otel-agent-resources/pom.xml',
15+
],
16+
labels: [
17+
'dependencies',
1118
],
12-
labels: ["dependencies"],
1319
packageRules: [
1420
{
15-
description: "Update component-prefixed shared-workflow action tags",
16-
matchManagers: ["github-actions"],
17-
matchPackageNames: ["grafana/shared-workflows"],
18-
matchCurrentValue: "/^.+[-/]v?\\d+\\.\\d+(?:\\.\\d+)?$/",
19-
overrideDatasource: "github-tags",
20-
versioning: "regex:^(?<compatibility>.*)[-/]v?(?<major>\\d+)\\.(?<minor>\\d+)(?:\\.(?<patch>\\d+))?$",
21+
description: 'Update component-prefixed shared-workflow action tags',
22+
matchManagers: [
23+
'github-actions',
24+
],
25+
matchPackageNames: [
26+
'grafana/shared-workflows',
27+
],
28+
matchCurrentValue: '/^.+[-/]v?\\d+\\.\\d+(?:\\.\\d+)?$/',
29+
overrideDatasource: 'github-tags',
30+
versioning: 'regex:^(?<compatibility>.*)[-/]v?(?<major>\\d+)\\.(?<minor>\\d+)(?:\\.(?<patch>\\d+))?$',
2131
},
2232
{
23-
matchFileNames: ["mise.toml"],
24-
matchDepNames: ["java"],
25-
groupName: "java temurin",
26-
additionalBranchPrefix: "temurin-",
33+
matchFileNames: [
34+
'mise.toml',
35+
],
36+
matchDepNames: [
37+
'java',
38+
],
39+
groupName: 'java temurin',
40+
additionalBranchPrefix: 'temurin-',
2741
},
2842
{
29-
matchFileNames: [".mise/envs/native/mise.toml"],
30-
matchDepNames: ["java"],
31-
groupName: "java graalvm",
32-
additionalBranchPrefix: "graalvm-",
43+
matchFileNames: [
44+
'.mise/envs/native/mise.toml',
45+
],
46+
matchDepNames: [
47+
'java',
48+
],
49+
groupName: 'java graalvm',
50+
additionalBranchPrefix: 'graalvm-',
3351
},
3452
{
35-
description: "Compat tests pin an LTS JDK the upstream release supports; block major JDK bumps that would break those builds",
36-
matchFileNames: [".mise/envs/jmx-exporter/mise.toml", ".mise/envs/micrometer/mise.toml"],
37-
matchDepNames: ["java"],
38-
matchUpdateTypes: ["major"],
53+
description: 'Compat tests pin an LTS JDK the upstream release supports; block major JDK bumps that would break those builds',
54+
matchFileNames: [
55+
'.mise/envs/jmx-exporter/mise.toml',
56+
'.mise/envs/micrometer/mise.toml',
57+
],
58+
matchDepNames: [
59+
'java',
60+
],
61+
matchUpdateTypes: [
62+
'major',
63+
],
3964
enabled: false,
4065
},
4166
{
42-
matchPackageNames: ["io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha"],
67+
matchPackageNames: [
68+
'io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha',
69+
],
4370
ignoreUnstable: false,
4471
},
4572
{
4673
enabled: false,
47-
description: "Ignore internal project modules",
48-
matchPackageNames: ["/^io\\.prometheus:(prometheus-metrics-bom|examples|example-.+|integration-tests|it-.+)$/"],
74+
description: 'Ignore internal project modules',
75+
matchPackageNames: [
76+
'/^io\\.prometheus:(prometheus-metrics-bom|examples|example-.+|integration-tests|it-.+)$/',
77+
],
4978
},
5079
{
51-
description: "Group protobuf-java and protoc together so generated code can be updated in one PR",
52-
matchDepNames: ["com.google.protobuf:protobuf-java", "protoc"],
53-
groupName: "protobuf",
80+
description: 'Group protobuf-java and protoc together so generated code can be updated in one PR',
81+
matchDepNames: [
82+
'com.google.protobuf:protobuf-java',
83+
'protoc',
84+
],
85+
groupName: 'protobuf',
5486
separateMajorMinor: false,
5587
},
5688
{
57-
description: "Update the Micrometer typed-descriptor compatibility ref weekly",
58-
matchManagers: ["custom.regex"],
59-
matchDatasources: ["git-refs"],
60-
matchDepNames: ["micrometer-metrics/micrometer"],
61-
matchCurrentValue: ["main"],
62-
schedule: ["on sunday"],
89+
description: 'Update the Micrometer typed-descriptor compatibility ref weekly',
90+
matchManagers: [
91+
'custom.regex',
92+
],
93+
matchDatasources: [
94+
'git-refs',
95+
],
96+
matchDepNames: [
97+
'micrometer-metrics/micrometer',
98+
],
99+
matchCurrentValue: 'main',
100+
schedule: [
101+
'on sunday',
102+
],
63103
},
64104
],
65105
customManagers: [
66-
{
67-
"customType": "regex",
68-
"description": "update _VERSION variables in mise.toml",
69-
"managerFilePatterns": ["/^mise\\.toml$/"],
70-
"matchStrings": [
71-
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?_VERSION\\s*=\\s*\"?(?<currentValue>[^@\"]+?)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?\\s"
72-
]
73-
},
74-
{
75-
customType: "regex",
76-
description: "track the latest Micrometer release for upstream compatibility",
77-
managerFilePatterns: ["/^\\.github\\/workflows\\/micrometer-compatibility\\.yml$/"],
78-
matchStrings: [
79-
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) packageName=(?<packageName>\\S+)\\n\\s*ref:\\s*(?<currentValue>v[0-9][^\\s]*)",
80-
],
81-
},
82-
{
83-
customType: "regex",
84-
description: "pin the Micrometer typed-descriptor compatibility ref",
85-
managerFilePatterns: ["/^\\.github\\/workflows\\/micrometer-compatibility\\.yml$/"],
86-
matchStrings: [
87-
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) packageName=(?<packageName>\\S+) currentValue=(?<currentValue>\\S+)\\n\\s*ref:\\s*(?<currentDigest>[a-f0-9]{40})",
88-
],
89-
},
106+
{
107+
customType: 'regex',
108+
description: 'update _VERSION variables in mise.toml',
109+
managerFilePatterns: [
110+
'/^mise\\.toml$/',
111+
],
112+
matchStrings: [
113+
'# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?_VERSION\\s*=\\s*"?(?<currentValue>[^@"]+?)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"?\\s',
114+
],
115+
},
116+
{
117+
customType: 'regex',
118+
description: 'track the latest Micrometer release for upstream compatibility',
119+
managerFilePatterns: [
120+
'/^\\.github\\/workflows\\/micrometer-compatibility\\.yml$/',
121+
],
122+
matchStrings: [
123+
'# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) packageName=(?<packageName>\\S+)\\n\\s*ref:\\s*(?<currentValue>v[0-9][^\\s]*)',
124+
],
125+
},
126+
{
127+
customType: 'regex',
128+
description: 'pin the Micrometer typed-descriptor compatibility ref',
129+
managerFilePatterns: [
130+
'/^\\.github\\/workflows\\/micrometer-compatibility\\.yml$/',
131+
],
132+
matchStrings: [
133+
'# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) packageName=(?<packageName>\\S+) currentValue=(?<currentValue>\\S+)\\n\\s*ref:\\s*(?<currentDigest>[a-f0-9]{40})',
134+
],
135+
},
90136
],
91137
}

0 commit comments

Comments
 (0)