-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenovate.json5
More file actions
124 lines (112 loc) · 3.4 KB
/
renovate.json5
File metadata and controls
124 lines (112 loc) · 3.4 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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":semanticCommits",
":semanticCommitTypeAll(chore)",
"group:allNonMajor",
"schedule:weekly"
],
"description": "Renovate configuration for dotfiles repository",
// Labels for PRs
"labels": ["dependencies", "renovate"],
// PR settings
"prHourlyLimit": 2,
"prConcurrentLimit": 5,
// Automerge non-major updates
"automerge": true,
"automergeType": "pr",
"automergeStrategy": "squash",
"platformAutomerge": true,
// Only automerge patch and minor, not major
"packageRules": [
{
"description": "Automerge patch and minor updates",
"matchUpdateTypes": ["patch", "minor"],
"automerge": true
},
{
"description": "Do not automerge major updates",
"matchUpdateTypes": ["major"],
"automerge": false
},
{
"description": "Group GitHub Actions updates",
"matchManagers": ["github-actions"],
"groupName": "GitHub Actions",
"groupSlug": "github-actions"
},
{
"description": "Group pre-commit hooks updates",
"matchManagers": ["pre-commit"],
"groupName": "pre-commit hooks",
"groupSlug": "pre-commit"
},
{
"description": "Group chezmoi external dependencies",
"matchManagers": ["regex"],
"matchFileNames": [".chezmoiexternal.toml"],
"groupName": "chezmoi externals",
"groupSlug": "chezmoi-externals"
},
{
"description": "Pin GitHub Actions to digest for security",
"matchManagers": ["github-actions"],
"pinDigests": true
}
],
// Enable managers for this repo
"enabledManagers": [
"github-actions",
"pre-commit",
"regex"
],
// GitHub Actions configuration
"github-actions": {
"fileMatch": [
"^\\.github/workflows/[^/]+\\.ya?ml$"
]
},
// Pre-commit configuration
"pre-commit": {
"enabled": true
},
// Custom regex managers for chezmoi externals
"customManagers": [
{
"customType": "regex",
"description": "Update git repos in .chezmoiexternal.toml",
"fileMatch": ["^\\.chezmoiexternal\\.toml$"],
"matchStrings": [
"url\\s*=\\s*\"https://github\\.com/(?<depName>[^\"]+?)(?:\\.git)?\"\\s*[\\s\\S]*?(?:ref|tag|branch)\\s*=\\s*\"(?<currentValue>[^\"]+)\""
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"description": "Update git repos (without explicit version) in .chezmoiexternal.toml - track latest releases",
"fileMatch": ["^\\.chezmoiexternal\\.toml$"],
"matchStrings": [
"\\[\"(?<path>[^\"]+)\"\\]\\s*\\n\\s*type\\s*=\\s*\"git-repo\"\\s*\\n\\s*url\\s*=\\s*\"https://github\\.com/(?<depName>[^/]+/[^\"]+?)(?:\\.git)?\""
],
"datasourceTemplate": "github-tags",
"depNameTemplate": "{{{depName}}}",
"currentValueTemplate": "main",
"versioningTemplate": "loose"
}
],
// Commit message settings
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "{{depName}}",
// PR body template
"prBodyTemplate": "{{{header}}}{{{table}}}{{{warnings}}}{{{notes}}}{{{changelogs}}}{{{controls}}}{{{footer}}}",
// Vulnerability alerts
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["security"]
},
// Timezone for scheduling
"timezone": "Europe/Helsinki"
}