-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrenovate.json5
76 lines (71 loc) · 2.78 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
baseBranches: ['next'],
enabledManagers: ['npm'],
extends: ['config:base', 'group:allNonMajor'],
fetchReleaseNotes: false, // Only fetch release notes for breaking changes
internalChecksFilter: 'strict', // PRs will be skipped unless a non-pending version is available (applies to "stabilityDays" check only)
labels: ['npm-dependencies'],
prConcurrentLimit: 1,
repositories: ['chanzuckerberg/edu-design-system'],
rangeStrategy: 'bump', // Always bump minor/patch to latest
// Required to prevent onboarding pr and generation of new config file https://github.com/renovatebot/github-action#configurationfile
onboarding: false,
requireConfig: false,
major: {
rangeStrategy: 'replace',
fetchReleaseNotes: true,
},
packageRules: [
{
// Hold back from creating branches until 3 or more days have elapsed since the version
// was released. Note: this only works for packages that provide a release timestamp header
// and does not ensure all updates are "stable".
matchDatasources: ['npm'],
stabilityDays: 3,
},
// Our peerDependencies for React are as low as 16.8.0, so we should support React v16
{
matchPackageNames: ['react', 'react-dom'],
groupName: 'react',
allowedVersions: '<17.0.0',
},
// Handle patch updates under 0.1.0 as potentially breaking and group them separately.
// Workaround for https://github.com/renovatebot/renovate/issues/3588
{
matchManagers: ['npm'],
matchCurrentVersion: '<0.1.0',
rangeStrategy: 'replace',
groupName: 'maybe breaking patch updates',
groupSlug: 'maybe-breaking-patch',
fetchReleaseNotes: true,
},
// Handle minor updates under 1.0.0 as potentially breaking and group them separately.
// Workaround for https://github.com/renovatebot/renovate/issues/3588
{
matchManagers: ['npm'],
matchCurrentVersion: '<1.0.0 >=0.1.0',
rangeStrategy: 'replace',
minor: {
groupName: 'maybe breaking minor updates',
groupSlug: 'maybe-breaking-minor',
fetchReleaseNotes: true,
},
},
// Updating packages with 'prettier' separately because updates to these packages often
// require modifying code to satistfy the new formatting rules.
{
matchPackagePatterns: ['prettier'],
groupName: 'prettier',
},
// Update typescript separately because typescript updates can create new
// typescript errors that need to be manually resolved.
{
matchPackageNames: ['typescript'],
groupName: 'typescript',
},
],
// Customize how PRs are displayed
prBodyTemplate: '{{{table}}}{{{notes}}}{{{changelogs}}}{{{controls}}}{{{footer}}}',
prBodyColumns: ['Package', 'Type', 'Change'],
}