Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchResult ¶
type MatchResult struct {
Trigger *model.AutomationTrigger
Profile string
}
MatchResult holds the result of matching a CI event against automation triggers.
func Match ¶
func Match(triggers []model.AutomationTrigger, event *model.EventContext) *MatchResult
Match finds the first trigger that matches the given event context. Returns nil if no trigger matches. First match wins.
func MatchByName ¶
func MatchByName(triggers []model.AutomationTrigger, name string) *MatchResult
MatchByName finds a trigger by its declared name. Returns nil if no trigger with that name exists.
Click to show internal directories.
Click to hide internal directories.