-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.json
More file actions
152 lines (152 loc) · 5.53 KB
/
Copy pathdefault.json
File metadata and controls
152 lines (152 loc) · 5.53 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
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
143
144
145
146
147
148
149
150
151
152
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Default preset for use with Parca's repos",
"extends": [
"config:best-practices",
":automergeDigest",
":automergeMinor",
":enablePreCommit",
":maintainLockFilesWeekly",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)",
"helpers:pinGitHubActionDigestsToSemver",
"customManagers:dockerfileVersions",
"customManagers:githubActionsVersions"
],
"reviewersFromCodeOwners": true,
"internalChecksFilter": "strict",
"platformAutomerge": true,
"postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths",
"npmDedupe",
"pnpmDedupe",
"yarnDedupeHighest"
],
"packageRules": [
{
"description": "Require dashboard approval for major updates",
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
},
{
"description": "One week stability period for Go, npm, and Rust packages",
"matchDatasources": ["go", "npm", "crate"],
"minimumReleaseAge": "7 days"
},
{
"description": "One week stability period for pre-commit packages",
"matchManagers": ["pre-commit"],
"minimumReleaseAge": "7 days"
},
{
"description": "Update Go module digests weekly as they tend to update too often",
"matchDatasources": ["go"],
"matchUpdateTypes": ["digest"],
"extends": ["schedule:weekly"]
},
{
"description": "Disable pinning Docker digests with Regex managers: https://github.com/renovatebot/renovate/discussions/24586",
"matchDatasources": ["docker"],
"matchManagers": ["custom.regex"],
"pinDigests": false
},
{
"description": "Prefix lockFileMaintenance branches",
"matchUpdateTypes": ["lockFileMaintenance"],
"additionalBranchPrefix": "{{manager}}-",
"commitMessagePrefix": "{{#if semanticCommitType}}{{semanticCommitType}}{{#if semanticCommitScope}}({{semanticCommitScope}}){{/if}}: {{/if}} {{manager}}"
},
{
"description": "Group golang docker tags and rename to Golang",
"matchDatasources": ["docker"],
"matchPackageNames": ["/(?:^|/)golang$/"],
"commitMessageTopic": "Golang",
"groupName": "golang"
},
{
"description": "Disable pinning digest for podman container image (rebuilds nightly and keeps latest manifest only)",
"matchDatasources": ["docker"],
"matchPackageNames": ["quay.io/containers/podman"],
"pinDigests": false
},
{
"description": "Customize rust updates commit message",
"matchPackageNames": ["rust"],
"commitMessageTopic": "Rust"
},
{
"description": "Group packages from Kubernetes together",
"matchSourceUrls": ["https://github.com/kubernetes/**"],
"matchUpdateTypes": ["patch", "minor", "major"],
"matchPackageNames": ["!/ingress-nginx/", "!/minikube/"],
"groupName": "kubernetes"
},
{
"description": "Group golangci-lint packages",
"matchSourceUrls": ["https://github.com/golangci/golangci-lint"],
"groupName": "golangci-lint"
},
{
"description": "Group go-jsonnet packages",
"matchSourceUrls": ["https://github.com/google/go-jsonnet"],
"groupName": "go-jsonnet"
},
{
"description": "Exclude retracted Kubernetes client versions: https://github.com/renovatebot/renovate/issues/13012",
"matchPackageNames": ["k8s.io/client-go"],
"allowedVersions": "<1"
},
{
"description": "Exclude retracted Prometheus versions: https://github.com/renovatebot/renovate/issues/13012",
"matchPackageNames": ["github.com/prometheus/prometheus"],
"allowedVersions": "<1"
},
{
"matchDepTypes": ["dependencies", "require"],
"semanticCommitType": "build"
},
{
"matchPackageNames": ["golang", "node", "rust"],
"matchUpdateTypes": ["patch", "minor", "major"],
"semanticCommitType": "build"
},
{ "matchFileNames": ["Dockerfile"], "semanticCommitType": "build" }
],
"customManagers": [
{
"description": "Update _VERSION variables in Makefiles",
"customType": "regex",
"managerFilePatterns": ["/(^|/)Makefile$/"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\s[A-Z_]+?_VERSION .?= (?<currentValue>.+?)\\s"
]
},
{
"description": "Update _VERSION variables in shell scripts",
"customType": "regex",
"managerFilePatterns": ["/\\.sh$/"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\s[A-Z_]+?_VERSION=('|\")?(?<currentValue>.+?)('|\")?\\s"
]
},
{
"description": "Update Golang in .go-version file",
"customType": "regex",
"managerFilePatterns": ["/(^|/)\\.go-version$/"],
"matchStrings": ["^\\s*(?<currentValue>.+?)\\s*$"],
"depNameTemplate": "golang",
"datasourceTemplate": "golang-version"
},
{
"description": "Update Rust stable version in rust-toolchain.toml",
"customType": "regex",
"managerFilePatterns": ["/(^|/)rust-toolchain\\.toml$/"],
"matchStrings": ["channel\\s*=\\s*('|\")(?<currentValue>.+?)('|\")\\s"],
"depNameTemplate": "rust",
"packageNameTemplate": "rust-lang/rust",
"datasourceTemplate": "github-releases"
}
]
}