Skip to content

Commit 142496d

Browse files
committed
chore: restore renovate config comments
1 parent 210cce7 commit 142496d

File tree

1 file changed

+38
-20
lines changed

1 file changed

+38
-20
lines changed

renovate.json5

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,56 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["github>netlify/renovate-config:default"],
4-
ignorePresets: [":prHourlyLimit2"],
5-
semanticCommits: "enabled",
6-
ignorePaths: ["**/node_modules/**"],
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['github>netlify/renovate-config:default'],
4+
ignorePresets: [':prHourlyLimit2'],
5+
semanticCommits: 'enabled',
6+
// The config we're extending ignores test dirs, but we want to bump some fixture deps
7+
ignorePaths: ['**/node_modules/**'],
78
packageRules: [
9+
// Since we've enabled Renovate (see above) for demo and fixture sites, adjust the config for these.
810
{
9-
matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"],
11+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
12+
// If a fixture requires a specific framework version, never bump it.
1013
updatePinnedDependencies: false,
11-
extends: [":semanticCommitTypeAll(chore)"],
14+
// Always use `chore:` (since these are test fixtures), to avoid no-op releases.
15+
extends: [':semanticCommitTypeAll(chore)'],
1216
},
1317
{
14-
description: "Stable & unstable Angular bumps in demo and test fixtures",
15-
groupName: "Angular packages",
16-
matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"],
17-
matchPackageNames: ["@angular/**", "zone.js", "@angular-devkit/**"],
18+
description: 'Stable & unstable Angular bumps in demo and test fixtures',
19+
groupName: 'Angular packages',
20+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
21+
matchPackageNames: ['@angular/**', 'zone.js', '@angular-devkit/**'],
22+
// Override the schedule to get immediate PRs.
1823
schedule: null,
19-
addLabels: ["bump-framework-in-fixtures"],
24+
// Apply a unique label so we can trigger additional workflows for these PRs.
25+
addLabels: ['bump-framework-in-fixtures'],
26+
// Bump even if the release isn't tagged as `latest`.
2027
respectLatest: false,
28+
// Bump even if it's a pre-release (e.g. 1.2.3-beta.8).
2129
ignoreUnstable: false,
30+
// Ideally we'd like to disable automerge only for unstable bumps, but this is
31+
// difficult (or impossible) to implement so we just disable it entirely.
2232
automerge: false,
2333
},
34+
// Angular major version updates attempt to upgrade fixtures for Angular 17, 18 etc
35+
// we never want to upgrade those, so we disable them in fixtures.
36+
// Angular major versions are being released on 6 months schedule and we will need to handle them
37+
// manually anyway (even if it's just creating test fixtures for them, without adjusting the runtime
38+
// itself)
39+
// Additionally peerDeps bumps (like typescript) make it seemingly impossible to automate this process
40+
// for demo app, so major bumps are just fully disabled.
2441
{
25-
description: "Disable angular major version upgrades",
26-
matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"],
27-
matchPackageNames: ["@angular/**", "@angular-devkit/**"],
28-
matchUpdateTypes: ["major"],
42+
description: 'Disable angular major version upgrades',
43+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
44+
matchPackageNames: ['@angular/**', '@angular-devkit/**'],
45+
matchUpdateTypes: ['major'],
2946
enabled: false,
3047
},
48+
// zone.js is in 0.x.y version range, so we also disable minor updates for those
3149
{
32-
description: "Disable zone.js minor version upgrades in fixtures",
33-
matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"],
34-
matchPackageNames: ["zone.js"],
35-
matchUpdateTypes: ["minor", "major"],
50+
description: 'Disable zone.js minor version upgrades in fixtures',
51+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
52+
matchPackageNames: ['zone.js'],
53+
matchUpdateTypes: ['minor', 'major'],
3654
enabled: false,
3755
},
3856
],

0 commit comments

Comments
 (0)