|
10 | 10 | "nuget", |
11 | 11 | ], |
12 | 12 | packageRules: [ |
13 | | - { |
14 | | - groupName: "cargo minor", |
15 | | - matchManagers: ["cargo"], |
16 | | - matchUpdateTypes: ["minor"], |
17 | | - }, |
18 | | - { |
19 | | - groupName: "dockerfile minor", |
20 | | - matchManagers: ["dockerfile"], |
21 | | - matchUpdateTypes: ["minor"], |
22 | | - }, |
23 | | - { |
24 | | - groupName: "docker-compose minor", |
25 | | - matchManagers: ["docker-compose"], |
26 | | - matchUpdateTypes: ["minor"], |
27 | | - }, |
28 | | - { |
29 | | - groupName: "github-action minor", |
30 | | - matchManagers: ["github-actions"], |
31 | | - matchUpdateTypes: ["minor"], |
32 | | - addLabels: ["hold"], |
33 | | - }, |
34 | | - { |
35 | | - // For any Microsoft.Extensions.* and Microsoft.AspNetCore.* packages, we want to create PRs for patch updates. |
36 | | - // This overrides the default that ignores patch updates for nuget dependencies. |
37 | | - matchPackageNames: [ |
38 | | - "/^Microsoft\\.Extensions\\./", |
39 | | - "/^Microsoft\\.AspNetCore\\./", |
40 | | - ], |
41 | | - matchUpdateTypes: ["patch"], |
42 | | - dependencyDashboardApproval: false, |
43 | | - }, |
44 | | - { |
45 | | - matchPackageNames: ["https://github.com/bitwarden/sdk-internal.git"], |
46 | | - groupName: "sdk-internal", |
47 | | - dependencyDashboardApproval: true |
48 | | - }, |
| 13 | + // ==================== Team Ownership Rules ==================== |
49 | 14 | { |
50 | 15 | matchManagers: ["dockerfile", "docker-compose"], |
51 | 16 | commitMessagePrefix: "[deps] BRE:", |
|
68 | 33 | "Fido2.AspNet", |
69 | 34 | "Duende.IdentityServer", |
70 | 35 | "Microsoft.AspNetCore.Authentication.JwtBearer", |
| 36 | + "Microsoft.Extensions.Caching.Cosmos", |
71 | 37 | "Microsoft.Extensions.Identity.Stores", |
72 | 38 | "Otp.NET", |
73 | 39 | "Sustainsys.Saml2.AspNetCore2", |
|
101 | 67 | commitMessagePrefix: "[deps] Billing:", |
102 | 68 | reviewers: ["team:team-billing-dev"], |
103 | 69 | }, |
104 | | - { |
105 | | - matchPackageNames: ["/^Microsoft\\.EntityFrameworkCore\\./", "/^dotnet-ef/"], |
106 | | - groupName: "EntityFrameworkCore", |
107 | | - description: "Group EntityFrameworkCore to exclude them from the dotnet monorepo preset", |
108 | | - }, |
109 | 70 | { |
110 | 71 | matchPackageNames: [ |
111 | 72 | "Dapper", |
|
153 | 114 | "Microsoft.Extensions.DependencyInjection", |
154 | 115 | "Microsoft.Extensions.Logging", |
155 | 116 | "Microsoft.Extensions.Logging.Console", |
156 | | - "Microsoft.Extensions.Caching.Cosmos", |
157 | 117 | "Microsoft.Extensions.Caching.SqlServer", |
158 | 118 | "Microsoft.Extensions.Caching.StackExchangeRedis", |
159 | 119 | "Quartz", |
|
162 | 122 | commitMessagePrefix: "[deps] Platform:", |
163 | 123 | reviewers: ["team:team-platform-dev"], |
164 | 124 | }, |
| 125 | + { |
| 126 | + matchUpdateTypes: ["lockFileMaintenance"], |
| 127 | + description: "Platform owns lock file maintenance", |
| 128 | + commitMessagePrefix: "[deps] Platform:", |
| 129 | + reviewers: ["team:team-platform-dev"], |
| 130 | + }, |
165 | 131 | { |
166 | 132 | matchPackageNames: [ |
167 | 133 | "AutoMapper.Extensions.Microsoft.DependencyInjection", |
|
191 | 157 | commitMessagePrefix: "[deps] Vault:", |
192 | 158 | reviewers: ["team:team-vault-dev"], |
193 | 159 | }, |
| 160 | + |
| 161 | + // ==================== Grouping Rules ==================== |
| 162 | + // These come after any specific team assignment rules to ensure |
| 163 | + // that grouping is not overridden by subsequent rule definitions. |
| 164 | + { |
| 165 | + groupName: "cargo minor", |
| 166 | + matchManagers: ["cargo"], |
| 167 | + matchUpdateTypes: ["minor"], |
| 168 | + }, |
| 169 | + { |
| 170 | + groupName: "dockerfile minor", |
| 171 | + matchManagers: ["dockerfile"], |
| 172 | + matchUpdateTypes: ["minor"], |
| 173 | + }, |
| 174 | + { |
| 175 | + groupName: "docker-compose minor", |
| 176 | + matchManagers: ["docker-compose"], |
| 177 | + matchUpdateTypes: ["minor"], |
| 178 | + }, |
| 179 | + { |
| 180 | + groupName: "github-action minor", |
| 181 | + matchManagers: ["github-actions"], |
| 182 | + matchUpdateTypes: ["minor"], |
| 183 | + addLabels: ["hold"], |
| 184 | + }, |
| 185 | + { |
| 186 | + matchPackageNames: ["/^Microsoft\\.EntityFrameworkCore\\./", "/^dotnet-ef/"], |
| 187 | + groupName: "EntityFrameworkCore", |
| 188 | + description: "Group EntityFrameworkCore to exclude them from the dotnet monorepo preset", |
| 189 | + }, |
| 190 | + { |
| 191 | + matchPackageNames: ["https://github.com/bitwarden/sdk-internal.git"], |
| 192 | + groupName: "sdk-internal", |
| 193 | + dependencyDashboardApproval: true |
| 194 | + }, |
| 195 | + |
| 196 | + // ==================== Dashboard Rules ==================== |
| 197 | + { |
| 198 | + // For any Microsoft.Extensions.* and Microsoft.AspNetCore.* packages, we want to create PRs for patch updates. |
| 199 | + // This overrides the default that ignores patch updates for nuget dependencies. |
| 200 | + matchPackageNames: [ |
| 201 | + "/^Microsoft\\.Extensions\\./", |
| 202 | + "/^Microsoft\\.AspNetCore\\./", |
| 203 | + ], |
| 204 | + matchUpdateTypes: ["patch"], |
| 205 | + dependencyDashboardApproval: false, |
| 206 | + }, |
| 207 | + { |
| 208 | + // For the Platform-owned dependencies below, we have decided we will only be creating PRs |
| 209 | + // for major updates, and sending minor (as well as patch, inherited from base config) to the dashboard. |
| 210 | + // This rule comes AFTER grouping rules so that groups are respected while still |
| 211 | + // sending minor/patch updates to the dependency dashboard for approval. |
| 212 | + matchPackageNames: [ |
| 213 | + "AspNetCoreRateLimit", |
| 214 | + "AspNetCoreRateLimit.Redis", |
| 215 | + "Azure.Data.Tables", |
| 216 | + "Azure.Extensions.AspNetCore.DataProtection.Blobs", |
| 217 | + "Azure.Messaging.EventGrid", |
| 218 | + "Azure.Messaging.ServiceBus", |
| 219 | + "Azure.Storage.Blobs", |
| 220 | + "Azure.Storage.Queues", |
| 221 | + "LaunchDarkly.ServerSdk", |
| 222 | + "Quartz", |
| 223 | + ], |
| 224 | + matchUpdateTypes: ["minor"], |
| 225 | + dependencyDashboardApproval: true, |
| 226 | + }, |
194 | 227 | ], |
195 | 228 | ignoreDeps: ["dotnet-sdk"], |
196 | 229 | } |
0 commit comments