Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Reproduction for using matchUpdateTypes & separateMultipleMinor

Notifications You must be signed in to change notification settings

SchroederSteffen/renovate-matchUpdateTypes-separateMultipleMinor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

renovate-matchUpdateTypes-separateMultipleMinor

Reproduction for using Renovate's matchUpdateTypes & separateMultipleMinor for the same package.

Problem

In our org, we group all minor & patch updates (preset group:allNonMajor). However, we want to separate any minor TypeScript updates, because they may contain breaking changes and many tools restrict the supported minor versions.

Additionally, we want to use the option separateMultipleMinor to be able to perform version jumps one-by-one.

Unfortunately, Renovate doesn't allow using matchUpdateTypes & separateMultipleMinor in the same package rule because of https://github.com/renovatebot/renovate/blob/8d78ca2ec8413739ac5c9247393ef8a147bfbd80/lib/config/validation.ts#L490.

Workaround

While it's not possible to use matchUpdateTypes & separateMultipleMinor in the same package rule, you can write two package rules as a workaround.

Not Allowed

{
  "packageRules": [
    {
      "groupName": "typescript",
      "matchPackageNames": ["typescript"],
      "matchUpdateTypes": ["major", "minor"],
      "separateMultipleMinor": true
    }
  ]
}

Allowed

{
  "packageRules": [
    {
      "groupName": "typescript",
      "matchPackageNames": ["typescript"],
      "matchUpdateTypes": ["major", "minor"]
    },
    {
      "matchPackageNames": ["typescript"],
      "separateMultipleMinor": true
    }
  ]
}

Discussion

renovatebot/renovate#29064

About

Reproduction for using matchUpdateTypes & separateMultipleMinor

Resources

Stars

Watchers

Forks