-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenovate-go.json
More file actions
150 lines (150 loc) · 4.83 KB
/
renovate-go.json
File metadata and controls
150 lines (150 loc) · 4.83 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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Go Renovate configuration for Go modules, tools, and dependencies",
"extends": [
"github>arillso/.github:renovate-base",
":semanticCommitTypeAll(chore)"
],
"postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"],
"packageRules": [
{
"description": "Go version updates - manual review",
"matchManagers": ["gomod"],
"matchDepTypes": ["golang"],
"groupName": "Go version",
"semanticCommitType": "chore",
"semanticCommitScope": "go",
"stabilityDays": 14,
"automerge": false,
"dependencyDashboardApproval": true,
"labels": ["go", "golang-version"],
"prPriority": 20
},
{
"description": "Group golang.org/x packages",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["golang.org/x/"],
"groupName": "golang.org/x packages",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"stabilityDays": 3
},
{
"description": "Group google.golang.org packages",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["google.golang.org/"],
"groupName": "google.golang.org packages",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"stabilityDays": 3
},
{
"description": "Group go.uber.org packages",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["go.uber.org/"],
"groupName": "go.uber.org packages",
"semanticCommitType": "chore",
"semanticCommitScope": "deps"
},
{
"description": "Group testing packages",
"matchManagers": ["gomod"],
"matchPackagePatterns": ["testify", "gomock", "mockery", "ginkgo", "gomega"],
"groupName": "Go testing packages",
"semanticCommitType": "chore",
"semanticCommitScope": "test",
"automerge": true
},
{
"description": "Group linting and formatting tools",
"matchManagers": ["gomod"],
"matchPackagePatterns": ["golangci-lint", "gofumpt", "goimports", "staticcheck"],
"groupName": "Go linting tools",
"semanticCommitType": "chore",
"semanticCommitScope": "lint",
"automerge": true
},
{
"description": "Development tools",
"matchManagers": ["gomod"],
"matchPackagePatterns": ["air", "wire", "mockgen", "protoc-gen", "buf", "goreleaser"],
"groupName": "Go development tools",
"semanticCommitType": "chore",
"semanticCommitScope": "tools",
"automerge": true,
"labels": ["dev-tools"]
},
{
"description": "Indirect dependencies - lower priority",
"matchManagers": ["gomod"],
"matchDepTypes": ["indirect"],
"groupName": "Go indirect dependencies",
"prPriority": -5,
"stabilityDays": 5
},
{
"description": "Major Go module updates - manual review",
"matchManagers": ["gomod"],
"matchUpdateTypes": ["major"],
"excludePackagePrefixes": ["golang.org/x/"],
"dependencyDashboardApproval": true,
"automerge": false,
"stabilityDays": 14,
"labels": ["go", "major-update"]
},
{
"description": "Major golang.org/x updates - auto-approve (pseudo-versioned)",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["golang.org/x/"],
"matchUpdateTypes": ["major"],
"automerge": true,
"stabilityDays": 5
},
{
"description": "Group Docker images",
"matchManagers": ["dockerfile"],
"groupName": "docker-images"
}
],
"customManagers": [
{
"customType": "regex",
"description": "Go version in .go-version files",
"fileMatch": ["(^|/)\\.go-version$"],
"matchStrings": ["^(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)$"],
"datasourceTemplate": "golang-version",
"depNameTemplate": "go"
},
{
"customType": "regex",
"description": "Go version in Makefiles",
"fileMatch": ["^Makefile$", "\\.mk$"],
"matchStrings": [
"GO_VERSION\\s*[:?]?=\\s*(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)"
],
"datasourceTemplate": "golang-version",
"depNameTemplate": "go"
},
{
"customType": "regex",
"description": "Go tools in Makefiles",
"fileMatch": ["^Makefile$", "\\.mk$"],
"matchStrings": [
"GOLANGCI_LINT_VERSION\\s*[:?]?=\\s*v?(?<currentValue>[^\\s]+)"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "golangci/golangci-lint",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"description": "Go tools versions in comments",
"fileMatch": ["\\.ya?ml$", "Dockerfile$"],
"matchStrings": [
"#\\s*renovate:\\s*go-tool\\s+(?<depName>[^\\s]+)\\s+(?<currentValue>[^\\s]+)"
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver"
}
]
}