-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrenovate.json5
More file actions
52 lines (48 loc) · 1.96 KB
/
Copy pathrenovate.json5
File metadata and controls
52 lines (48 loc) · 1.96 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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['config:recommended'],
// Only manage the tool versions in tools/tools.json. Action `uses:` pins are
// handled by Dependabot (.github/dependabot.yml), so leave every other
// manager off to avoid the two bots fighting.
enabledManagers: ['custom.jsonata'],
// Hold every update until the release is at least 1 month old, and always
// target the newest version that passes that age check rather than the
// absolute latest (so we never jump onto a brand-new release).
minimumReleaseAge: '1 month',
internalChecksFilter: 'strict',
customManagers: [
{
// cargo tools built via `cargo install`. Parsed as structured JSON, so an
// optional `auto-update` flag anywhere in the entry is captured as the
// depType (see packageRules below) regardless of field order.
customType: 'jsonata',
fileFormat: 'json',
managerFilePatterns: ['/^tools-cargo\\.json$/'],
matchStrings: [
'$.{ "depName": name, "currentValue": version, "depType": $string(`auto-update`) }',
],
datasourceTemplate: 'crate',
},
{
// go tools built via `go install`. depName is the module root (first three
// path segments of import-path); version is stored without a leading `v`.
customType: 'jsonata',
fileFormat: 'json',
managerFilePatterns: ['/^tools-go\\.json$/'],
matchStrings: [
'$.{ "depName": $join($split(`import-path`, "/")[[0..2]], "/"), "currentValue": version, "depType": $string(`auto-update`) }',
],
datasourceTemplate: 'go',
extractVersionTemplate: '^v?(?<version>.+)$',
},
],
packageRules: [
{
// Freeze a tool by setting "auto-update": false on its entry in
// tools/tools.json; that flag is captured as the depType above and
// disabled here, so Renovate never proposes updates for it.
matchDepTypes: ['false'],
enabled: false,
},
],
}