Add custom package rule accounting for pretix calendar versioning to not have Renovate classify month updates as minor version updates, but major version updates instead.
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
 | 
						|
  "extends": [
 | 
						|
    "config:recommended", // Included in config:best-practices anyway, but added for clarity.
 | 
						|
    "config:best-practices",
 | 
						|
    ":ignoreUnstable"
 | 
						|
  ],
 | 
						|
  "semanticCommits": "disabled",
 | 
						|
  "packageRules": [
 | 
						|
    // Create a package rule for grouping all stable non-major dependency updates together.
 | 
						|
    // A combination of/inspired by:
 | 
						|
    // https://docs.renovatebot.com/presets-group/#groupallnonmajor
 | 
						|
    // https://docs.renovatebot.com/presets-default/#automergestablenonmajor
 | 
						|
    {
 | 
						|
      "groupName": "all stable non-major dependencies",
 | 
						|
      "groupSlug": "all-stable-minor-patch",
 | 
						|
      "matchCurrentVersion": "!/^0/",
 | 
						|
      "matchUpdateTypes": [
 | 
						|
        "minor",
 | 
						|
        "patch"
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "matchDatasources": ["docker"],
 | 
						|
      "matchPackageNames": ["docker.io/pretix/standalone"],
 | 
						|
      "versioning": "regex:^(?<major>\\d+\\.\\d+)(?:\\.(?<minor>\\d+))$"
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "docker-compose": {
 | 
						|
    "managerFilePatterns": [
 | 
						|
      "/(^|/)(?:docker-)?compose[^/]*\\.ya?ml.j2$/"
 | 
						|
    ]
 | 
						|
  }
 | 
						|
}
 |