-
Notifications
You must be signed in to change notification settings - Fork 5
/
default.json
142 lines (142 loc) · 5.3 KB
/
default.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Default preset for use with Renovate's repos",
"extends": [
"config:base",
":maintainLockFilesWeekly",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)",
"docker:enableMajor",
"docker:pinDigests",
"group:linters"
],
"assignees": ["rarkins", "viceice"],
"automergeType": "branch",
"dependencyDashboard": true,
"prCreation": "not-pending",
"rebaseWhen": "behind-base-branch",
"packageRules": [
{
"description": "Require dashboard approval for major updates except Renovate",
"excludePackagePatterns": ["^renovate(bot)?($|/)"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
},
{
"description": "Automerge non-major updates",
"matchUpdateTypes": ["minor", "patch", "digest", "lockFileMaintenance"],
"automerge": true
},
{
"description": "v prefix workaround for action updates",
"matchDepTypes": ["action"],
"extractVersion": "^(?<version>v\\d+\\.\\d+\\.\\d+)$",
"versioning": "regex:^v(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$"
},
{
"description": "Group prettier packages",
"matchPackageNames": ["prettier"],
"matchPackagePatterns": ["^@prettier\\/", "^prettier-plugin-"],
"groupName": "prettier packages"
},
{
"description": "Update references to Docker tags for renovate/renovate in Markdown files weekly",
"matchPackageNames": ["renovate/renovate"],
"matchPaths": [".md"],
"extends": ["schedule:weekly"],
"automerge": true,
"stabilityDays": 0,
"commitMessageTopic": "references to {{{depName}}}",
"semanticCommitType": "docs",
"semanticCommitScope": null,
"additionalBranchPrefix": "docs-"
},
{
"description": "Disable Ubuntu minor updates",
"matchDatasources": ["docker"],
"matchPackageNames": ["amd64/ubuntu", "ubuntu"],
"matchUpdateTypes": ["minor"],
"enabled": false
},
{
"description": "Group Renovate Buildpack and Ubuntu digest updates with themselves",
"matchDatasources": ["docker"],
"matchUpdateTypes": ["digest"],
"matchPackageNames": ["ubuntu", "renovate/ubuntu", "renovate/buildpack"],
"branchTopic": "{{{depNameSanitized}}}-digests",
"commitMessageTopic": "{{{depName}}} Docker digests"
},
{
"description": "One week stability period for npm packages except Renovate",
"matchDatasources": ["npm"],
"excludePackageNames": ["renovate"],
"stabilityDays": 7
},
{
"description": "Require approval for aws-sdk as it updates too often",
"matchDatasources": ["npm"],
"matchPackageNames": ["aws-sdk"],
"matchPackagePatterns": ["^@aws-sdk\\/"],
"dependencyDashboardApproval": true
},
{
"description": "Restrict husky to v4 due to commercial license for v5",
"packageNames": ["husky"],
"allowedVersions": "<5"
},
{
"description": "Only patch updates on renovate rebuild trigger files",
"matchFiles": ["renovate.Dockerfile"],
"separateMinorPatch": true
},
{
"description": "Only patch updates on renovate rebuild trigger files",
"matchFiles": ["renovate.Dockerfile"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
}
],
"regexManagers": [
{
"description": "Update Renovate references in Markdown files",
"fileMatch": ["\\.md$"],
"matchStrings": [
"(?<depName>renovate\\/renovate):(?<currentValue>[a-z0-9.-]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"description": "Update _VERSION variables in Dockerfiles",
"fileMatch": ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"description": "Update install-* Buildpack commands in Dockerfiles",
"fileMatch": ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: lookupName=(?<lookupName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\sRUN install-[a-z]+? (?<depName>[a-z-]+?) (?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"description": "Update _VERSION variables in shell scripts",
"fileMatch": ["\\.sh$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s[A-Z_]+?_VERSION=(?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"description": "Update version: variables in workflows",
"fileMatch": ["^\\.github\\/workflows\\/[^/]+\\.ya?ml$"],
"matchStrings": [
"^\\s+version: (?<currentValue>.*) #renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)(?: versioning=(?<versioning>.*?))?\\s"
]
}
]
}