Skip to content

Commit

Permalink
Automerge more dependency updates (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt authored Mar 15, 2024
1 parent 1efbab8 commit 3d6a6ae
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
extends: [
"config:recommended",
":semanticCommitsDisabled",
":automergeStableNonMajor",
":automergePatch",
"regexManagers:githubActionsVersions"
],
labels: ["dependencies"],
Expand Down Expand Up @@ -37,6 +39,12 @@
}
],
packageRules: [
{
// disable automerge for go minor updates
matchDatasources: ["golang-version"],
matchUpdateTypes: ["minor"],
automerge: false
},
{
// bump k8s and controller-runtime go dependencies together
groupName: "k8s packages",
Expand Down Expand Up @@ -75,7 +83,7 @@
]
},
{
// separate k8s patch updates (keep in sync with the next package rule)
// disable automerge for k8s minor updates
matchPackagePrefixes: [
// datasource=go
"k8s.io/", // includes more than the k8s-go group! (e.g., k8s.io/utils)
Expand All @@ -84,19 +92,14 @@
"kubernetes/kubernetes",
"kubernetes-sigs/controller-tools"
],
separateMinorPatch: true
matchUpdateTypes: ["minor"],
automerge: false
},
{
// automerge k8s patch updates (keep in sync with the previous package rule)
matchPackagePrefixes: [
// datasource=go
"k8s.io/", // includes more than the k8s-go group! (e.g., k8s.io/utils)
"sigs.k8s.io/controller-runtime",
// datasource=github-releases
"kubernetes/kubernetes",
"kubernetes-sigs/controller-tools"
],
matchUpdateTypes: ["patch", "digest"],
// automerge k8s.io/utils updates
matchDatasources: ["go"],
matchPackageNames: ["k8s.io/utils"],
matchUpdateTypes: ["digest"],
automerge: true
},
{
Expand Down

0 comments on commit 3d6a6ae

Please sign in to comment.