|
1 | 1 | { |
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', |
5 | 9 | automerge: true, |
6 | 10 | ignorePaths: [ |
7 | | - "**/simpleclient-archive/**", |
| 11 | + '**/simpleclient-archive/**', |
8 | 12 | // old projects |
9 | 13 | // 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', |
11 | 18 | ], |
12 | | - labels: ["dependencies"], |
13 | 19 | packageRules: [ |
14 | 20 | { |
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+))?$', |
21 | 31 | }, |
22 | 32 | { |
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-', |
27 | 41 | }, |
28 | 42 | { |
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-', |
33 | 51 | }, |
34 | 52 | { |
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 | + ], |
39 | 64 | enabled: false, |
40 | 65 | }, |
41 | 66 | { |
42 | | - matchPackageNames: ["io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha"], |
| 67 | + matchPackageNames: [ |
| 68 | + 'io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha', |
| 69 | + ], |
43 | 70 | ignoreUnstable: false, |
44 | 71 | }, |
45 | 72 | { |
46 | 73 | 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 | + ], |
49 | 78 | }, |
50 | 79 | { |
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', |
54 | 86 | separateMajorMinor: false, |
55 | 87 | }, |
56 | 88 | { |
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 | + ], |
63 | 103 | }, |
64 | 104 | ], |
65 | 105 | 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 | + }, |
90 | 136 | ], |
91 | 137 | } |
0 commit comments