Skip to content

Group updates on Semantic Versioning level Beta #7795

@jurre

Description

@jurre

As part of our effort to release grouped updates for Dependabot, we're rolling out a new feature in closed beta that will allow you to group by semver level.

What this looks like:

version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
    groups:
      non-major-versions: # the name of the group
        update-types:     # the key used to specify the semver level to include in the group
        - "minor"         # an array, possible values being minor, patch and major
        - "patch"

For the above configuration, Dependabot will open a grouped PR for any dependencies where the highest resolvable version is a patch or minor SemVer update, and any dependencies that will be updated to a new major version will be opened as separate, individual PRs.

The update-types key can be combined with other group rules, for these examples I will only specify the groups section, assume the rest of the config file is the same as the one listed above:

groups:
  angular:
    patterns: 
    - "@angular*"
    update-types:
    - "minor"
    - "patch"

For this configuration, any packages matching the pattern @angular* where the highest resolvable version is minor or patch will be grouped together, any package that does not match the pattern or that does not update to a minor or patch version will be opened as a separate PR. For cases where you do not want updates to major versions of @angular* packages, you can specify an ignore condition:

groups:
  angular:
    patterns: 
    - "@angular*"
    update-types:
    - "minor"
    - "patch"
ignore:
  - dependency-name: "@angular*"
    update-types: ["version-update:semver-major"]

If you want grouped PRs for development dependencies that have patch updates, you would specify:

groups:
  patch-dev-dependencies:
    dependency-type: "development"
    update-types:
    - "patch"

If you want to join the private beta, please fill out this form and we'll enable the feature.

Any other feedback or thoughts are much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    F: grouped-updates 🎳Relates to bumping more than one dependency in a single PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions