diff --git a/.github/renovate.json b/.github/renovate.json index bae2e93..1df6284 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "description": "THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.\n\nGenerated on 2024-12-16T14:18:24Z by kres 071772c-dirty.\n\n", + "description": "THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.\n\nGenerated on 2024-12-16T15:37:25Z by kres f05fefd-dirty.\n\n", "prHeader": "Update Request | Renovate Bot", "extends": [ ":dependencyDashboard", diff --git a/internal/output/renovate/types.go b/internal/output/renovate/types.go index 6576c2c..6cc1ae7 100644 --- a/internal/output/renovate/types.go +++ b/internal/output/renovate/types.go @@ -27,12 +27,17 @@ type CustomManager struct { // PackageRule represents a package rule. type PackageRule struct { + Enabled *bool `json:"enabled,omitempty"` DataSourceTemplate string `json:"datasourceTemplate,omitempty"` DepNameTemplate string `json:"depNameTemplate,omitempty"` GroupName string `json:"groupName,omitempty"` Versioning string `json:"versioning,omitempty"` VersioningTemplate string `json:"versioningTemplate,omitempty"` + MatchDataSources []string `json:"matchDataSources,omitempty"` + MatchFiles []string `json:"matchFiles,omitempty"` + MatchPaths []string `json:"matchPaths,omitempty"` + MatchPackageNames []string `json:"matchPackageNames,omitempty"` MatchUpdateTypes []string `json:"matchUpdateTypes,omitempty"` } diff --git a/internal/project/common/renovate.go b/internal/project/common/renovate.go index ef28dc7..d72ebfd 100644 --- a/internal/project/common/renovate.go +++ b/internal/project/common/renovate.go @@ -35,7 +35,11 @@ type CustomManager struct { // PackageRule represents a package rule. type PackageRule struct { + Enabled *bool `yaml:"enabled,omitempty"` Versioning string `yaml:"versioning,omitempty"` + MatchDataSources []string `yaml:"matchDataSources,omitempty"` + MatchFiles []string `yaml:"matchFiles,omitempty"` + MatchPaths []string `yaml:"matchPaths,omitempty"` MatchPackageNames []string `yaml:"matchPackageNames,omitempty"` } @@ -69,6 +73,10 @@ func (r *Renovate) CompileRenovate(o *renovate.Output) error { })) o.PackageRules(xslices.Map(r.PackageRules, func(pr PackageRule) renovate.PackageRule { return renovate.PackageRule{ + Enabled: pr.Enabled, + MatchDataSources: pr.MatchDataSources, + MatchFiles: pr.MatchFiles, + MatchPaths: pr.MatchPaths, MatchPackageNames: pr.MatchPackageNames, Versioning: pr.Versioning, }