This commit is contained in:
Christopher Homberger committed 2025-03-17 22:43:23 +01:00
1 parent c3f6f13377
commit ca6bbc6c6d
6 files changed
+7 -1

No files matched your search

+1
View File
@@ -237,6 +237,7 @@ type WebhookForm struct {
Release bool
Package bool
Status bool
WorkflowRun bool
WorkflowJob bool
Active bool
BranchFilter string `binding:"GlobPattern"`
+2
View File
@@ -81,6 +81,8 @@ func newPayload[T any](rc payloadConvertor[T], data []byte, event webhook_module
return convertUnmarshalledJSON(rc.Package, data)
case webhook_module.HookEventStatus:
return convertUnmarshalledJSON(rc.Status, data)
// case webhook_module.HookEventWorkflowRun:
// return convertUnmarshalledJSON(rc.WorkflowRun, data)
case webhook_module.HookEventWorkflowJob:
return convertUnmarshalledJSON(rc.WorkflowJob, data)
}