Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEventHandler ¶
type DefaultEventHandler struct {
// contains filtered or unexported fields
}
DefaultEventHandler is the default CI event handler.
func NewDefaultEventHandler ¶
func NewDefaultEventHandler(logger *slog.Logger) DefaultEventHandler
NewDefaultEventHandler returns a new default event handler.
type Event ¶
type Event interface { // Firing returns true if the event is firing. Firing(p *project.Project, config cue.Value) (bool, error) }
Event represents a CI event.
type EventHandler ¶
type EventHandler interface { // Firing returns true if any of the events are firing for the given events. Firing(p *project.Project, events map[string]cue.Value) bool }
EventHandler handles CI events.
type MergeEvent ¶
type MergeEvent struct {
// contains filtered or unexported fields
}
MergeEvent fires when a merge occurs to the default branch.
type MergeEventConfig ¶
type MergeEventConfig struct {
Branch string `json:"branch"`
}
MergeEventConfig is the configuration for the MergeEvent.
Click to show internal directories.
Click to hide internal directories.