Documentation
¶
Index ¶
- Constants
- type OnAlert
- func (a *OnAlert) Cleanup(ctx core.TriggerContext) error
- func (a *OnAlert) Color() string
- func (a *OnAlert) Configuration() []configuration.Field
- func (a *OnAlert) Description() string
- func (a *OnAlert) Documentation() string
- func (a *OnAlert) ExampleData() map[string]any
- func (a *OnAlert) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
- func (a *OnAlert) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (a *OnAlert) Hooks() []core.Hook
- func (a *OnAlert) Icon() string
- func (a *OnAlert) Label() string
- func (a *OnAlert) Name() string
- func (a *OnAlert) Setup(ctx core.TriggerContext) error
- type OnAlertConfiguration
Constants ¶
View Source
const ( // PayloadType is the canvas event type this trigger emits. Intake seeding // uses the same type so a seeded alert and a webhook look the same. PayloadType = "github.dependabotAlert" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnAlert ¶
type OnAlert struct{}
func (*OnAlert) Configuration ¶
func (a *OnAlert) Configuration() []configuration.Field
func (*OnAlert) Description ¶
func (*OnAlert) Documentation ¶
func (*OnAlert) ExampleData ¶
func (*OnAlert) HandleHook ¶
func (*OnAlert) HandleWebhook ¶
func (a *OnAlert) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
type OnAlertConfiguration ¶
Click to show internal directories.
Click to hide internal directories.