-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathrenovate.json5
More file actions
113 lines (100 loc) · 3.86 KB
/
Copy pathrenovate.json5
File metadata and controls
113 lines (100 loc) · 3.86 KB
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
// renovate.json5 - Mender dependency update configuration for mendertesting
// See Documentation/dependency-updates.md in mender-qa for the process.
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":gitSignOff",
":rebaseStalePrs"
],
// CODEOWNERS drives reviewer assignment - keep its dependency file entries current.
"reviewersFromCodeOwners": true,
// fix(deps): <desc>, per renovate.json5.sample in mender-qa.
"semanticCommits": "enabled",
"semanticCommitType": "fix",
"semanticCommitScope": "deps",
// Fallback window for weeks with no merges; the renovate CI job is the primary trigger.
"schedule": ["after 10pm on Monday", "before 6am on Tuesday"],
// Was prHourlyLimit 0 (unlimited) while Dependabot still owned gomod.
"prHourlyLimit": 2,
"prConcurrentLimit": 5,
// Only master. 3.3.x and 3.4.x have been dormant since 2022-10-03.
"baseBranchPatterns": ["master"],
// Security PRs bypass the schedule and automerge when CI is green.
"vulnerabilityAlerts": {
"enabled": true,
"schedule": ["at any time"],
"automerge": true,
"automergeType": "pr",
"labels": ["security"]
},
// vendor/ is committed, so a bare go.mod bump would leave the tree inconsistent.
"postUpdateOptions": ["gomodTidy", "gomodVendor"],
// Versions this repo pins for other repos to consume, none of which a standard
// manager can see.
"customManagers": [
// MENDER_ARTIFACT_VERSION in the flat docker-acceptance check template.
{
"customType": "regex",
"managerFilePatterns": ["/.gitlab-ci-check-docker-acceptance.yml/"],
"matchStrings": [
"MENDER_ARTIFACT_VERSION:\\s*[\"']?(?<currentValue>[\\d\\.]+)[\"']?"
],
"depNameTemplate": "mendersoftware/mender-artifact",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v?(?<version>.*)$",
"versioningTemplate": "semver"
},
// mender_artifact_version as a component input default.
{
"customType": "regex",
"managerFilePatterns": ["/templates/docker-acceptance-codecov.yml/"],
"matchStrings": [
"mender_artifact_version:\\s*\\n\\s*description:[^\\n]*\\n\\s*default:\\s*[\"'](?<currentValue>[^\"']+)[\"']"
],
"depNameTemplate": "mendersoftware/mender-artifact",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v?(?<version>.*)$",
"versioningTemplate": "semver"
},
// renovate_runner_version as a component input default.
{
"customType": "regex",
"managerFilePatterns": ["/templates/renovate.yml/"],
"matchStrings": [
"renovate_runner_version:\\s*\\n\\s*description:[^\\n]*\\n\\s*default:\\s*[\"'](?<currentValue>[^\"']+)[\"']"
],
"depNameTemplate": "renovate-bot/renovate-runner",
"datasourceTemplate": "gitlab-tags",
"registryUrlTemplate": "https://gitlab.com",
"versioningTemplate": "semver"
}
],
"packageRules": [
// config:recommended pulls in :semanticPrefixFixDepsChoreOthers, which forces
// semanticCommitType back to "chore" for any dep whose manager does not tag it
// with an npm/pip style depType. Must stay BEFORE the gitlabci rule: rules apply
// in order and the last match wins, so gitlabci keeps its own type.
{
"matchPackageNames": ["*"],
"semanticCommitType": "fix"
},
// CI file updates get ci: instead of fix(deps):
{
"matchManagers": ["gitlabci", "gitlabci-include"],
"semanticCommitType": "ci",
"semanticCommitScope": ""
},
// Go: one PR for all modules.
{
"matchManagers": ["gomod"],
"groupName": "golang-dependencies",
"groupSlug": "golang-dependencies"
},
// vendor/ contains third-party go.mod files - do not treat them as our own.
{
"matchFileNames": ["vendor/**"],
"enabled": false
}
]
}