Reduce the number of Dependabot pull requests you receive by grouping updates across multiple ecosystems into a single, consolidated pull request.
Multi-ecosystem updates allow you to consolidate Dependabot pull requests across different package ecosystems into a single PR per group. See Multi-ecosystem updates.
.github/dependabot.yml file. See Configuring Dependabot version updates..github/dependabot.yml fileStart by defining a group with a schedule in the top-level multi-ecosystem-groups section:
version: 2
multi-ecosystem-groups:
infrastructure:
schedule:
interval: "weekly"
updates:
# Your existing package ecosystems will go here
Add the multi-ecosystem-groups key and patterns to your package ecosystem configurations.
version: 2
multi-ecosystem-groups:
infrastructure:
schedule:
interval: "weekly"
updates:
- package-ecosystem: "docker"
directory: "/"
patterns: ["nginx", "redis", "postgres"]
multi-ecosystem-group: "infrastructure"
- package-ecosystem: "terraform"
directory: "/"
patterns: ["aws", "terraform-*"]
multi-ecosystem-group: "infrastructure"
Note
Use ["*"] to include all dependencies.
Commit the changes to your dependabot.yml file.
You can add assignees, labels, or other configuration options to your multi-ecosystem groups. See assignees and labels.
multi-ecosystem-groups:
infrastructure:
schedule:
interval: "weekly"
assignees: ["@platform-team"]
labels: ["infrastructure", "dependencies"]
updates:
- package-ecosystem: "docker"
directory: "/"
patterns: ["nginx", "redis", "postgres"]
multi-ecosystem-group: "infrastructure"
- package-ecosystem: "terraform"
directory: "/"
patterns: ["aws", "terraform-*"]
multi-ecosystem-group: "infrastructure"
For a complete list of available options, see Dependabot options reference.
After committing your changes, you can verify the configuration:
The next time the scheduled update runs, you'll receive a single pull request with updates from all ecosystems in the group.
If you're not seeing consolidated pull requests, ensure that:
patterns key is defined for each ecosystem (required when using multi-ecosystem-group).multi-ecosystem-group field.