|
13 | 13 | "regexManagers": [ |
14 | 14 | { |
15 | 15 | "description": "Upgrade go version", |
16 | | - "fileMatch": [ |
17 | | - "(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$", |
18 | | - "^\\.golangci\\.yml" |
19 | | - ], |
20 | | - "matchStrings": [ |
21 | | - "# renovate: go-version\\s*go-version:\\s*\"?(?<currentValue>.*)\"?", |
22 | | - "lang-version: \"(?<currentValue>.*)\"" |
23 | | - ], |
| 16 | + "fileMatch": ["(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$"], |
| 17 | + "matchStrings": ["go-version:\\s(?<currentValue>.*)"], |
24 | 18 | "datasourceTemplate": "golang-version", |
25 | 19 | "depNameTemplate": "go" |
26 | 20 | }, |
|
30 | 24 | "matchStrings": [ |
31 | 25 | "# renovate:\\sdatasource=(?<datasource>.*?)\\sdepName=(?<depName>.*?)\\s.*@(?<currentValue>.*)" |
32 | 26 | ] |
| 27 | + }, |
| 28 | + { |
| 29 | + "description": "Upgrade go minor for golangci-lint", |
| 30 | + "fileMatch": ["^\\.golangci\\.yml"], |
| 31 | + "matchStrings": ["lang-version: \"(?<currentValue>.*)\""], |
| 32 | + "datasourceTemplate": "github-tags", |
| 33 | + "depNameTemplate": "golang/go" |
33 | 34 | } |
34 | 35 | ], |
35 | 36 | "packageRules": [ |
36 | 37 | { |
37 | | - "description": "The golang CI language version only uses major.minor", |
38 | | - "matchFiles": [".golangci.yml"], |
39 | | - "matchPackageNames": ["go"], |
| 38 | + "description": "Parse go version for golangci-lint from GitHub tags", |
| 39 | + "extractVersion": "^go(?<version>\\d+\\.\\d+)", |
| 40 | + "matchPackageNames": ["golang/go"], |
40 | 41 | "groupName": "go" |
41 | 42 | }, |
42 | 43 | { |
|
49 | 50 | "description": "Group go upgrades", |
50 | 51 | "matchPackageNames": ["go", "golang"], |
51 | 52 | "groupName": "go", |
52 | | - "prHeader": ":warning: Only upgrade the go version once the matching swagger version has been released. Check [the Makefile](https://github.com/envelope-zero/backend/blob/main/Makefile) for the current swagger version. Rule: swagger 1.8.4 -> go 1.18.4. This is needed as swagger needs to be rebuild with the exact go version (or newer) that the code that it generates documentation from has been built with." |
| 53 | + "prHeader": ":warning: Only upgrade the go version once you verified locally that the new go version works with the current swagger version. To do so, upgrade your machine to the new go version and run `pre-commit run --all-files`." |
53 | 54 | }, |
54 | 55 | { |
55 | 56 | "description": "Group swaggo/swag upgrades", |
|
0 commit comments