Skip to content

Commit 8a118eb

Browse files
committed
Add update.exclude-reason field.
Adds ExcludeReason field for tracking why package auto updates are disabled.
1 parent 620c535 commit 8a118eb

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ type Update struct {
490490
GitHubMonitor *GitHubMonitor `json:"github,omitempty" yaml:"github,omitempty"`
491491
// The configuration block for transforming the `package.version` into an APK version
492492
VersionTransform []VersionTransform `json:"version-transform,omitempty" yaml:"version-transform,omitempty"`
493+
// ExcludeReason is required if enabled=false, to explain why updates are disabled.
494+
ExcludeReason string `json:"exclude-reason,omitempty" yaml:"exclude-reason,omitempty"`
493495
}
494496

495497
// ReleaseMonitor indicates using the API for https://release-monitoring.org/

pkg/config/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,10 @@
906906
},
907907
"type": "array",
908908
"description": "The configuration block for transforming the `package.version` into an APK version"
909+
},
910+
"exclude-reason": {
911+
"type": "string",
912+
"description": "ExcludeReason is required if enabled=false, to explain why updates are disabled."
909913
}
910914
},
911915
"additionalProperties": false,

0 commit comments

Comments
 (0)