diff --git a/models/selective_triggers.go b/models/selective_triggers.go index d5364b749..b94915e04 100644 --- a/models/selective_triggers.go +++ b/models/selective_triggers.go @@ -38,6 +38,8 @@ type TagGitEventTriggerItem struct { Name any `json:"name,omitempty" yaml:"name,omitempty"` } +// UnmarshalYAML implements the yaml.Unmarshaler interface for Triggers, allowing +// additional validation of the triggers YAML configuration. func (triggers *Triggers) UnmarshalYAML(unmarshal func(interface{}) error) error { var triggersConfig map[string]any if err := unmarshal(&triggersConfig); err != nil {