Skip to content

Commit 2fc8597

Browse files
committed
feat(renovate-config): Group digest and minor packages
1 parent 9c0356f commit 2fc8597

File tree

2 files changed

+79
-31
lines changed

2 files changed

+79
-31
lines changed

packages/renovate-config/default.json

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,27 @@
1717
],
1818
"packageRules": [
1919
{
20+
"matchUpdateTypes": ["minor"],
21+
"minimumReleaseAge": "3 days",
22+
"automerge": true,
23+
"groupName": "minor",
24+
"prPriority": 1
25+
},
26+
{
27+
"matchUpdateTypes": [
28+
"pin",
29+
"patch",
30+
"digest",
31+
"pinDigest",
32+
"lockFileMaintenance"
33+
],
34+
"minimumReleaseAge": "3 days",
35+
"automerge": true,
36+
"groupName": "digest",
37+
"prPriority": 1
38+
},
39+
{
40+
"extends": ["schedule:officeHours"],
2041
"matchPackageNames": [
2142
"@superdispatch/eslint-plugin-ui",
2243
"@superdispatch/forms",
@@ -29,10 +50,10 @@
2950
"@superdispatch/testutils"
3051
],
3152
"groupName": "@superdispatch/ui",
32-
"prPriority": 1,
33-
"schedule": ["at any time"]
53+
"prPriority": 1
3454
},
3555
{
56+
"extends": ["schedule:officeHours"],
3657
"matchPackageNames": [
3758
"@superdispatch/js-tools",
3859
"@superdispatch/prettier-config",
@@ -43,29 +64,28 @@
4364
"@superdispatch/renovate-config"
4465
],
4566
"groupName": "@superdispatch/js-tools",
46-
"prPriority": 1,
47-
"schedule": ["at any time"]
67+
"prPriority": 1
4868
},
4969
{
70+
"extends": ["schedule:officeHours"],
5071
"matchPackageNames": ["@superdispatch/sdk"],
5172
"groupName": "@superdispatch/sdk",
52-
"prPriority": 1,
53-
"schedule": ["at any time"]
73+
"prPriority": 1
5474
},
5575
{
76+
"extends": ["schedule:officeHours"],
5677
"matchPackageNames": [
5778
"@superdispatch/http",
5879
"@superdispatch/http-resource"
5980
],
6081
"groupName": "@superdispatch/http",
61-
"prPriority": 1,
62-
"schedule": ["at any time"]
82+
"prPriority": 1
6383
},
6484
{
85+
"extends": ["schedule:officeHours"],
6586
"matchPackagePatterns": ["^@sdkit/"],
6687
"groupName": "sdkit",
67-
"prPriority": 1,
68-
"schedule": ["at any time"]
88+
"prPriority": 1
6989
}
7090
]
7191
}

packages/renovate-config/package.json

Lines changed: 49 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,44 @@
1919
":enableVulnerabilityAlerts",
2020
":prHourlyLimit4"
2121
],
22+
"reviewersFromCodeOwners": true,
2223
"assignAutomerge": true,
2324
"platformAutomerge": true,
2425
"commitMessageSuffix": "({{updateType}})",
2526
"postUpdateOptions": [
2627
"yarnDedupeHighest"
2728
],
29+
"prBodyNotes": [
30+
"### Checklist",
31+
"- [ ] I checked this package version in [snyk](https://security.snyk.io/vuln/npm) \\ \n - [ ] I labeled PR as 'PR needs visual test' \\ \n - [ ] I checked this update locally \\ \n - [ ] QA engineers checked this update"
32+
],
2833
"packageRules": [
2934
{
35+
"matchUpdateTypes": [
36+
"minor"
37+
],
38+
"minimumReleaseAge": "3 days",
39+
"automerge": true,
40+
"groupName": "minor",
41+
"prPriority": 1
42+
},
43+
{
44+
"matchUpdateTypes": [
45+
"pin",
46+
"patch",
47+
"digest",
48+
"pinDigest",
49+
"lockFileMaintenance"
50+
],
51+
"minimumReleaseAge": "3 days",
52+
"automerge": true,
53+
"groupName": "digest",
54+
"prPriority": 1
55+
},
56+
{
57+
"extends": [
58+
"schedule:officeHours"
59+
],
3060
"matchPackageNames": [
3161
"@superdispatch/eslint-plugin-ui",
3262
"@superdispatch/forms",
@@ -39,56 +69,54 @@
3969
"@superdispatch/testutils"
4070
],
4171
"groupName": "@superdispatch/ui",
42-
"prPriority": 1,
43-
"schedule": [
44-
"at any time"
45-
]
72+
"prPriority": 1
4673
},
4774
{
75+
"extends": [
76+
"schedule:officeHours"
77+
],
4878
"matchPackageNames": [
4979
"@superdispatch/js-tools",
5080
"@superdispatch/prettier-config",
5181
"@superdispatch/babel-preset",
5282
"@superdispatch/tsconfig",
5383
"@superdispatch/eslint-plugin",
54-
"@superdispatch/gh-scripts"
84+
"@superdispatch/gh-scripts",
85+
"@superdispatch/renovate-config"
5586
],
5687
"groupName": "@superdispatch/js-tools",
57-
"prPriority": 1,
58-
"schedule": [
59-
"at any time"
60-
]
88+
"prPriority": 1
6189
},
6290
{
91+
"extends": [
92+
"schedule:officeHours"
93+
],
6394
"matchPackageNames": [
6495
"@superdispatch/sdk"
6596
],
6697
"groupName": "@superdispatch/sdk",
67-
"prPriority": 1,
68-
"schedule": [
69-
"at any time"
70-
]
98+
"prPriority": 1
7199
},
72100
{
101+
"extends": [
102+
"schedule:officeHours"
103+
],
73104
"matchPackageNames": [
74105
"@superdispatch/http",
75106
"@superdispatch/http-resource"
76107
],
77108
"groupName": "@superdispatch/http",
78-
"prPriority": 1,
79-
"schedule": [
80-
"at any time"
81-
]
109+
"prPriority": 1
82110
},
83111
{
112+
"extends": [
113+
"schedule:officeHours"
114+
],
84115
"matchPackagePatterns": [
85116
"^@sdkit/"
86117
],
87118
"groupName": "sdkit",
88-
"prPriority": 1,
89-
"schedule": [
90-
"at any time"
91-
]
119+
"prPriority": 1
92120
}
93121
]
94122
}

0 commit comments

Comments
 (0)