Skip to content

Commit d178efe

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

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

renovate.json5

Lines changed: 24 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,22 @@
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
37+
{
38+
description: 'Disable angular major version upgrades',
39+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
40+
matchPackageNames: ['@angular/**', '@angular-devkit/**'],
41+
matchUpdateTypes: ['major'],
42+
enabled: false,
43+
},
44+
// zone.js is in 0.x.y version range, so we also disable minor updates for those
45+
{
46+
description: 'Disable zone.js minor version upgrades',
47+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
48+
matchPackageNames: ['zone.js'],
49+
matchUpdateTypes: ['minor', 'major'],
50+
enabled: false,
51+
},
3452
],
3553
}

0 commit comments

Comments
 (0)