-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenovate.json5
51 lines (51 loc) · 1.31 KB
/
renovate.json5
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
{
extends: ["config:base"],
reviewers: ["44smkn"],
labels: ["renovate:{{depName}}"],
postUpdateOptions: [
"gomodTidy",
"gomodUpdateImportPaths",
],
platformAutomerge: true,
packageRules: [
{
matchUpdateTypes: ["minor", "patch", "pin"],
automerge: true,
},
{
matchDatasources: ["golang-version"],
matchUpdateTypes: ["minor"],
automerge: false,
},
// Upgrade go version in go.mod files every time there's a new minor Go release
// https://github.com/renovatebot/renovate/tree/main/lib/modules/versioning/go-mod-directive
{
"matchDatasources": ["golang-version"],
"rangeStrategy": "bump"
},
],
regexManagers: [
// GitHub Actions
{
fileMatch: [
"^\\.github/workflows/.+\\.ya?ml$",
],
matchStrings: [
"\\s+go-version: (?<currentValue>.+)\\n",
],
depNameTemplate: "golang-version",
datasourceTemplate: "golang-version",
versioningTemplate: "semver-coerced",
},
{
fileMatch: [
"^\\.github/workflows/.+\\.ya?ml$",
],
matchStrings: [
"uses: golangci/golangci-lint-action@.+?\\s+with:\\s+version: (?<currentValue>.+)\\n",
],
depNameTemplate: "golangci/golangci-lint",
datasourceTemplate: "github-releases",
},
],
}