aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-30 18:56:55 +0900
committerOphestra <cat@gensokyo.uk>2026-05-30 18:56:55 +0900
commit8b87e0eb7628dbdc32f966c1b3fb9a51e76e2a48 (patch)
tree7a961771ef5ff219df82c28f99f254046d73d22a /internal/rosa/state.go
parentf4215ddda5e91a330e1f49abd7a55e03091bf908 (diff)
internal/rosa: annotate blocked updates
These situations, while unfortunate, are inevitable at a larger scale. This change enables annotation and optional hiding of blocked updates. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index 1aa37ea9..a53a0ffa 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -96,6 +96,8 @@ type Metadata struct {
//
// [Anitya]: https://release-monitoring.org/
ID int `json:"-"`
+ // Maintainer-facing reason of blocked update.
+ Blocked string `json:"block,omitempty"`
// Whether to exclude from exported functions.
Exclude bool `json:"exclude,omitempty"`
@@ -944,6 +946,7 @@ func (ctx *evalContext) pf(
k("version"): &meta.Version,
k("exclude"): &meta.Exclude,
k("anitya"): &anitya,
+ k("block"): &meta.Blocked,
k("latest"): &meta.latest,
k("writable"): &attr.Writable,