-
Notifications
You must be signed in to change notification settings - Fork 63
/
renovate-config.js
58 lines (58 loc) · 2.58 KB
/
renovate-config.js
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
module.exports = {
globalExtends: ["config:recommended"], // using this instead of "extends" solves the problem with order of the configuration
repositories: ['zowe/api-layer'],
baseBranches: ["v2.x.x", "v3.x.x"],
commitBody: "Signed-off-by: {{{gitAuthor}}}",
dependencyDashboard: true,
allowedPostUpgradeCommands: ['^npm install'],
packageRules: [
{
//for v2.x.x branch ignore grouping from extends preset, find all packages which are patches,
// slug them and make PR with name "all patch dependencies"
"matchBaseBranches": ["v2.x.x"],
"groupName": "all patch dependencies",
"groupSlug": "all-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["patch"],
"postUpgradeTasks": {
"commands": ["npm install --package-lock-only"],
"fileFilters": ["**/**"],
"executionMode": "branch"
}
},
{
//for v2.x.x make dashboard approval to all major and minor dependencies updates
"matchBaseBranches": ["v2.x.x"],
"matchUpdateTypes": ["major", "minor"],
"dependencyDashboardApproval": true,
},
{
//for v3.x.x branch find all packages which are minor and patches,
// slug them and make PR with name "all non-major dependencies"
"matchBaseBranches": ["v3.x.x"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"postUpgradeTasks": {
"commands": ["npm install --package-lock-only"],
"fileFilters": ["**/**"],
"executionMode": "branch"
}
},
{
//for v3.x.x make dashboard approval to all major dependencies updates
"matchBaseBranches": ["v3.x.x"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true,
}
],
printConfig: true,
labels: ['dependencies'],
dependencyDashboardLabels: ['dependencies'],
ignoreDeps: ['history', 'jsdom', 'react-router-dom', '@mui/icons-material', '@mui/material', '@material-ui/core', '@material-ui/icons', 'undici'],
commitMessagePrefix: 'chore: ',
prHourlyLimit: 0, // removes rate limit for PR creation per hour
npmrc: 'legacy-peer-deps=true\nregistry=https://zowe.jfrog.io/artifactory/api/npm/npm-org/', //for updating lock-files
npmrcMerge: true //be combined with a "global" npmrc
};