Skip to content

Commit 0dab730

Browse files
committed
chore: don't create separate renovate PRs for angular and angular-cli
1 parent ecbdd84 commit 0dab730

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

renovate.json5

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
extends: ['github>netlify/renovate-config:default'],
44
ignorePresets: [':prHourlyLimit2'],
5+
prHourlyLimit: 0,
56
semanticCommits: true,
67
// The config we're extending ignores test dirs, but we want to bump some fixture deps
78
ignorePaths: ['**/node_modules/**'],
89
packageRules: [
9-
// Since we've enabled Renovate (see above) for fixture sites, adjust the config for these.
10+
// Since we've enabled Renovate (see above) for demo and fixture sites, adjust the config for these.
1011
{
11-
matchFileNames: ['tests/**/fixtures/**/package.json'],
12+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
1213
// If a fixture requires a specific framework version, never bump it.
1314
updatePinnedDependencies: false,
1415
// Always use `chore:` (since these are test fixtures), to avoid no-op releases.
1516
extends: [':semanticCommitTypeAll(chore)'],
1617
},
1718
{
18-
description: 'Stable & unstable Angular bumps in test fixtures',
19-
matchFileNames: ['tests/**/fixtures/**/package.json'],
20-
// See https://docs.renovatebot.com/presets-monorepo/#monorepoangular.
21-
matchSourceUrls: ['https://github.com/angular/angular'],
19+
description: 'Stable & unstable Angular bumps in demo and test fixtures',
20+
groupName: 'Angular packages',
21+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
22+
matchPackageNames: ['@angular/**', 'zone.js', '@angular-devkit/**'],
2223
// Override the schedule to get immediate PRs.
2324
schedule: null,
2425
// Apply a unique label so we can trigger additional workflows for these PRs.
@@ -31,5 +32,25 @@
3132
// difficult (or impossible) to implement so we just disable it entirely.
3233
automerge: false,
3334
},
35+
// Angular major version updates attempt to upgrade fixtures for Angular 17, 18 etc
36+
// we never want to upgrade those, so we disable them in fixtures.
37+
// Angular major versions are being released on 6 months schedule and we will need to handle them
38+
// manually anyway (even if it's just creating test fixtures for them, without adjusting the runtime
39+
// itself)
40+
{
41+
description: 'Disable angular major version upgrades in fixtures',
42+
matchFileNames: ['tests/**/fixtures/**/package.json'],
43+
matchPackageNames: ['@angular/**', '@angular-devkit/**'],
44+
matchUpdateTypes: ['major'],
45+
enabled: false,
46+
},
47+
// zone.js is in 0.x.y version range, so we also disable minor updates for those
48+
{
49+
description: 'Disable zone.js minor version upgrades in fixtures',
50+
matchFileNames: ['tests/**/fixtures/**/package.json'],
51+
matchPackageNames: ['zone.js'],
52+
matchUpdateTypes: ['minor', 'major'],
53+
enabled: false,
54+
},
3455
],
3556
}

0 commit comments

Comments
 (0)