|
11 | 11 | ], |
12 | 12 |
|
13 | 13 | "labels": [ |
14 | | - "renovate" // Standard label for all Renovate PRs |
| 14 | + "renovate", // Standard label for all Renovate PRs |
| 15 | + "{{baseBranch}}" // Add branch name as label |
15 | 16 | ], |
16 | 17 |
|
17 | 18 | // Branch configuration: main + release branches v0.5+ |
|
52 | 53 | "groupName": "go version", |
53 | 54 | "matchPackageNames": [ "golang/go", "docker.io/library/golang", "registry.access.redhat.com/ubi9/go-toolset" ], |
54 | 55 | "matchDepNames": [ "go", "golang", "docker.io/library/golang", "registry.access.redhat.com/ubi9/go-toolset" ], |
55 | | - "matchManagers": [ "asdf", "dockerfile", "gomod" ], |
| 56 | + // gomod is not included in this packageManagers list, because the go directive in the go.mod means |
| 57 | + // "Compatible with this version or later". So it is advisable to not bump this version unless necessary. |
| 58 | + // Ref: https://docs.renovatebot.com/modules/manager/gomod/#updating-of-go-mod-and-toolchain-directives |
| 59 | + "matchManagers": [ "asdf", "dockerfile" ], |
56 | 60 | "matchDatasources": [ "docker", "github-tags", "golang-version" ], |
57 | 61 | "matchUpdateTypes": [ "patch" ], |
58 | 62 | "commitMessageTopic": "golang version", |
59 | 63 | "branchTopic": "go-version" |
60 | 64 | }, |
61 | 65 | { |
62 | | - // Go Version: Block actual major updates (1.x -> 2.x) |
| 66 | + // Go Version: Block actual major updates (1.x -> 2.x). |
| 67 | + // It also prevents bumps for go-toolset image versions with v9+ |
63 | 68 | "description": "Block Go major version updates beyond v1.x", |
64 | 69 | "matchPackageNames": [ "golang/go", "docker.io/library/golang", "registry.access.redhat.com/ubi9/go-toolset" ], |
65 | 70 | "matchDepNames": [ "go", "golang", "docker.io/library/golang", "registry.access.redhat.com/ubi9/go-toolset" ], |
66 | | - "matchManagers": [ "asdf", "dockerfile", "gomod" ], |
| 71 | + // gomod is not included in this packageManagers list, because the go directive in the go.mod means |
| 72 | + // "Compatible with this version or later". So it is advisable to not bump this version unless necessary. |
| 73 | + // Ref: https://docs.renovatebot.com/modules/manager/gomod/#updating-of-go-mod-and-toolchain-directives |
| 74 | + "matchManagers": [ "asdf", "dockerfile" ], |
67 | 75 | "matchDatasources": [ "docker", "github-tags", "golang-version" ], |
68 | 76 | "matchUpdateTypes": [ "major" ], |
69 | 77 | "enabled": false // Block all major Go version updates |
|
74 | 82 | "groupName": "go version", |
75 | 83 | "matchPackageNames": [ "golang/go", "docker.io/library/golang", "registry.access.redhat.com/ubi9/go-toolset" ], |
76 | 84 | "matchDepNames": [ "go", "golang", "docker.io/library/golang", "registry.access.redhat.com/ubi9/go-toolset" ], |
77 | | - "matchManagers": [ "asdf", "dockerfile", "gomod" ], |
| 85 | + // gomod is not included in this packageManagers list, because the go directive in the go.mod means |
| 86 | + // "Compatible with this version or later". So it is advisable to not bump this version unless necessary. |
| 87 | + // Ref: https://docs.renovatebot.com/modules/manager/gomod/#updating-of-go-mod-and-toolchain-directives |
| 88 | + "matchManagers": [ "asdf", "dockerfile" ], |
78 | 89 | "matchDatasources": [ "docker", "github-tags", "golang-version" ], |
79 | 90 | "matchUpdateTypes": [ "minor" ], |
80 | 91 | "commitMessagePrefix": "🚨", |
|
0 commit comments