Help us shape the future of Go! Take the 2026 Go Developer Survey

trigger

package
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL