Repository navigation
Expand file tree
/
Copy pathrenovate.json5
More file actions
131 lines (131 loc) · 4.99 KB
/
Copy pathrenovate.json5
File metadata and controls
131 lines (131 loc) · 4.99 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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigests",
"schedule:weekly", // dependency update PR on monday, vulnerabilityAlerts bypasses this
],
"configMigration": true,
"enabledManagers": ["github-actions", "gomod", "npm", "pep621", "nix", "custom.regex", "dockerfile"],
"labels": ["dependencies"],
"branchPrefix": "renovate/",
"separateMajorMinor": false, // include major updates in group PRs
"minimumReleaseAge": "5 days",
"postUpdateOptions": ["gomodUpdateImportPaths", "pnpmDedupe"],
"constraints": {"gomodMod": "v0.10.0"},
"semanticCommits": "enabled",
"osvVulnerabilityAlerts": true,
"vulnerabilityAlerts": {
"enabled": true,
"semanticCommitType": "fix", // overrides packageRules
},
"postUpgradeTasks": {
"commands": ["make tidy", "make svg", "make generate-codemirror-languages"],
"installTools": {
"golang": {},
"node": {},
"pnpm": {},
},
"fileFilters": [
"go.mod",
"go.sum",
"assets/go-licenses.json",
"assets/codemirror-languages.json",
"public/assets/img/svg/**",
"options/fileicon/**",
],
"executionMode": "branch",
},
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/(^|/)\\.(gitea|github)/(workflows|actions)/.+\\.ya?ml$/"],
"matchStrings": [
"[A-Za-z0-9_]+_VERSION[ \\t]*:[ \\t]*[\"']?(?<currentValue>[^\\s\"']+)[\"']?[ \\t]*# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+) depName=(?<depName>\\S+)(?: (?:lookupName|packageName)=(?<packageName>\\S+))?(?: versioning=(?<versioning>\\S+))?(?: extractVersion=(?<extractVersion>\\S+))?(?: registryUrl=(?<registryUrl>\\S+))?",
],
},
{
"customType": "regex",
"managerFilePatterns": ["/(^|/)Makefile$/"],
"matchStrings": [
"(?<packageName>(?<depName>[^\\s/=@]+(?:/[^\\s/@]+){2})(?:/v[0-9]+)?)(?:/[^\\s@]+)?@(?<currentValue>v\\S+)\\s+# renovate: datasource=(?<datasource>go)",
],
"autoReplaceStringTemplate": "{{{depName}}}{{#unless (or (equals newMajor 0) (equals newMajor 1))}}/v{{{newMajor}}}{{/unless}}{{{replace '^[^/]+(?:/[^/@]+){2}(?:/v[0-9]+)?(/[^@]*)?@.*$' '$1' replaceString}}}@{{{newValue}}} # renovate: datasource=go",
},
{
"customType": "regex",
"managerFilePatterns": ["/(^|/)Makefile$/"],
"matchStrings": [
"[A-Z_]+_IMAGE\\s*\\?=\\s*(?<depName>[^:\\s]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[a-f0-9]+)\\s+# renovate: datasource=(?<datasource>\\S+)",
],
},
],
"packageRules": [
{
"matchPackageNames": ["*"],
"groupName": "dependencies", // single weekly PR for all dependency updates
"semanticCommitType": "chore", // dep updates are rarely fixes for gitea
},
{
"matchPackageNames": ["@mcaptcha/vanilla-glue"],
"allowedVersions": "^0.1", // breaking changes in rc versions need to be handled
},
{
"matchPackageNames": ["cropperjs"],
"allowedVersions": "^1", // need to migrate to v2 but v2 is not compatible with v1
},
{
"matchPackageNames": ["tailwindcss"],
"allowedVersions": "^3", // need to migrate
},
{
"matchPackageNames": ["@citation-js/core", "@citation-js/plugin-bibtex", "@citation-js/plugin-csl"],
"allowedVersions": "<0.8", // https://github.com/citation-js/citation-js/pull/277
},
{
"matchPackageNames": ["typescript"],
"allowedVersions": "^6", // typescript-eslint is not yet compatible with typescript 7
},
{
"matchPackageNames": ["github.com/yuin/goldmark"],
"allowedVersions": "<2.0.0", // v2 is a rewrite, the markdown renderer and extensions need a migration
},
{
"matchPackageNames": ["postgres"],
"allowedVersions": "/^14($|[.-])/", // pin to oldest supported major
},
{
"matchPackageNames": ["bitnamilegacy/mysql"],
"allowedVersions": "/^8\\.4($|[.-])/", // pin to oldest LTS
},
{
"matchPackageNames": ["mcr.microsoft.com/mssql/server"],
"allowedVersions": "/^2019($|[.-])/", // pin to oldest in extended support
},
{
"matchPackageNames": ["elasticsearch"],
"allowedVersions": "/^8($|[.-])/", // pin to oldest supported major
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["mcr.microsoft.com/**"],
"minimumReleaseAgeBehaviour": "timestamp-optional", // registry has no release timestamps, https://github.com/renovatebot/renovate/issues/38656
},
{
"matchManagers": ["gomod"],
"matchDepNames": ["go"],
"matchDepTypes": ["golang", "toolchain"], // fast-track go and toolchain in their own PR
"groupName": "golang",
"rangeStrategy": "bump",
"schedule": ["at any time"],
"minimumReleaseAge": "0",
},
{
"matchManagers": ["gomod"],
"matchDepNames": ["go"],
"matchDepTypes": ["golang"],
"matchUpdateTypes": ["patch", "major"], // go minimum bumps on minor only
"enabled": false,
},
],
}