Skip to content

Commit

Permalink
chore(deps): add dependabot group for common Go dependencies (#2187)
Browse files Browse the repository at this point in the history
Add @dependabot group for common Go dependencies

This produces a single dependabot PR once a week that contains
all the updates from commonly used and relatively stable.
Updates to the dependencies in this group will not be included
in other more frequent updates.
Other dependencies could be added to this group if needed in
the future.

Add a dependabot group for k8s dependencies
  • Loading branch information
julio-lopez committed Jul 18, 2023
1 parent 27b3004 commit 4fbc5e0
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,29 @@ version: 2
updates:
- package-ecosystem: gomod
directory: "/"
open-pull-requests-limit: 2
open-pull-requests-limit: 4
schedule:
interval: daily
interval: weekly
commit-message:
prefix: "deps(go):"
ignore:
# Avoids unnecessarily auto-creating PRs for k8s dependencies, as these
# will be closed since k8s dependencies need to be updated all at once
# starting with kanister and go through additional validation.
- dependency-name: "k8s.io/*"
- dependency-name: "sigs.k8s.io/*"
# Dependabot opens PRs for older versions of openshift that would downgrade the version in use.
- dependency-name: "github.com/openshift/api"
groups:
# create large PR upgrading multiple infrastructure dependencies in one shot,
# only include upstream dependencies that are stable and have somewhat
# regular releases which would be otherwise hard to manually manage.
common-golang:
patterns:
- "cloud.google.com/*"
- "github.com/aws/aws-sdk-go/*"
- "github.com/Azure/azure-sdk-for-go/sdk/*"
- "github.com/minio/minio-go/*"
- "golang.org/x/*"
- "google.golang.org/*"
# create a single PR for k8s dependencies, so they can be updated all at
# once and go through additional validation.
k8s:
patterns:
- "k8s.io/*"
- "sigs.k8s.io/*"

0 comments on commit 4fbc5e0

Please sign in to comment.