Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2023 v1.0.0 Jun 19, 2023 Changes in this version + func HandleWebhook(ctx *context.Context, wh *WebhookHandlerImpl) ([]*common.WorkflowsBatch, error) + func IsFileExists(ctx *context.Context, wh *WebhookHandlerImpl, path string, file string) bool + type Trigger struct + Branches *[]string + Config string + Events *[]string + OnExit *[]string + OnStart *[]string + Templates *[]string + type WebhookHandler interface + PrepareBatchForMatchingTriggers func(ctx *context.Context) ([]*common.WorkflowsBatch, error) + RegisterTriggers func(ctx *context.Context) error + type WebhookHandlerImpl struct + Payload *git.WebhookPayload + Triggers *[]Trigger + func NewWebhookHandler(cfg *conf.Config, clients *clients.Clients, payload *git.WebhookPayload) (*WebhookHandlerImpl, error) + func (wh *WebhookHandlerImpl) PrepareBatchForMatchingTriggers(ctx *context.Context) ([]*common.WorkflowsBatch, error) + func (wh *WebhookHandlerImpl) RegisterTriggers(ctx *context.Context) error