forked from zowe/api-layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenovate_config.js
76 lines (72 loc) · 2.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
globalExtends: ["config:recommended"], // instead of "extends" this resolve immediately as part of global config
repositories: ['mirek163/api-layer'],
baseBranches: ['v2.x.x','v3.x.x-renovate'],
dependencyDashboard: true,
hostRules: [
//
//}
// {
// "hostType": "npm",
// "matchHost": "registry.npmjs.org",
// "replaceHost": "https://zowe.jfrog.io/artifactory/api/npm/"
//}
// {
{
"hostType": 'npm',
"matchHost": 'https://zowe.jfrog.io/artifactory/api/npm/npm-org/',
"enabled": true
},
{
"matchHost": 'https://registry.npmjs.org/',
"enabled": false
}
],
packageRules: [
{
// matchPackageNames: ["npm"],
// sourceUrl: "https://zowe.jfrog.io/artifactory/api/npm/",
//"matchDatasources": ["npm"],
//"registryUrls": ["https://zowe.jfrog.io/artifactory/api/npm/npm-org/"]
//"matchDatasources": ["npm"],
//"sourceUrl": ["https://zowe.jfrog.io/artifactory/api/npm/npm-org/"]
//},
//{
//for v.2.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"],
},
{
//for v.2.x.x make dashboard approval to all major and minor dependencies updates
"matchBaseBranches": ["v2.x.x"],
"matchUpdateTypes": ["major", "minor"],
"dependencyDashboardApproval": true,
},
{
//for v.3.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-renovate"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["minor", "patch"]
},
{
//for v.3.x.x make dashboard approval to all major dependencies updates
"matchBaseBranches": ["v3.x.x-renovate"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true,
}
],
printConfig: true,
labels: ['dependencies'],
dependencyDashboardLabels: ['dependencies'],
commitMessagePrefix: 'chore: ',
prHourlyLimit: 0, // removes rate limit for PR creation per hour
npmrc: 'legacy-peer-deps=true', //for updating lock-files
npmrcMerge: true //be combined with a "global" npmrc
};