diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index f5af3a3..665b01f 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -14,7 +14,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.17.x + go-version: 1.19.x - name: get modules run: go mod vendor @@ -28,7 +28,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3.2.0 with: - version: v1.44 + version: v1.49 - name: run tests run: make test diff --git a/examples/simple-http-server-funcs/main.go b/examples/simple-http-server-funcs/main.go index 3772571..23c7955 100644 --- a/examples/simple-http-server-funcs/main.go +++ b/examples/simple-http-server-funcs/main.go @@ -27,7 +27,7 @@ func main() { func newPing(handle *githubevents.EventHandler) { handle.OnBeforeAny( - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { fmt.Println("ping!") return nil }, @@ -36,7 +36,7 @@ func newPing(handle *githubevents.EventHandler) { func newPong(handle *githubevents.EventHandler) { handle.OnBeforeAny( - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { fmt.Println("pong!") return nil }, diff --git a/gen/generate.go b/gen/generate.go index 171bb2b..463fb23 100644 --- a/gen/generate.go +++ b/gen/generate.go @@ -54,7 +54,7 @@ func main() { } } -func ExecuteWebhookEventTemplate(file string, data interface{}) error { +func ExecuteWebhookEventTemplate(file string, data any) error { err := ExecuteTemplate(file+".go", webhookEventTemplate, data) if err != nil { return err @@ -62,7 +62,7 @@ func ExecuteWebhookEventTemplate(file string, data interface{}) error { return nil } -func ExecuteWebhookEventTypesTemplate(file string, data interface{}) error { +func ExecuteWebhookEventTypesTemplate(file string, data any) error { err := ExecuteTemplate(file+".go", webhookTypesTemplate, data) if err != nil { return err @@ -75,7 +75,7 @@ func ExecuteWebhookEventTypesTemplate(file string, data interface{}) error { } // ExecuteWebhookEventTypesTemplate renders the named template and writes to io.Writer wr. -func ExecuteTemplate(file string, tmpl string, data interface{}) error { +func ExecuteTemplate(file string, tmpl string, data any) error { wr := os.Stdout if output := file; output != "" { wri, err := os.Create(output) @@ -107,7 +107,7 @@ func ExecuteTemplate(file string, tmpl string, data interface{}) error { } // ExecuteMarkdownTemplate renders the named template and writes to io.Writer wr. -func ExecuteMarkdownTemplate(file string, tmpl string, data interface{}) error { +func ExecuteMarkdownTemplate(file string, tmpl string, data any) error { wr := os.Stdout buf := new(bytes.Buffer) t, err := template.New("").Parse(tmpl) diff --git a/gen/template_webhook_event_tests.go b/gen/template_webhook_event_tests.go index 56681cf..b03ba94 100644 --- a/gen/template_webhook_event_tests.go +++ b/gen/template_webhook_event_tests.go @@ -396,7 +396,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -404,7 +404,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -440,7 +440,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -448,7 +448,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -484,7 +484,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -492,7 +492,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -528,7 +528,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -536,7 +536,7 @@ func Test{{ $webhook.Event }}(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_branch_protection_rule_test.go b/githubevents/events_branch_protection_rule_test.go index d2597e8..ea3e3b5 100644 --- a/githubevents/events_branch_protection_rule_test.go +++ b/githubevents/events_branch_protection_rule_test.go @@ -756,7 +756,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestBranchProtectionRuleEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_check_run_test.go b/githubevents/events_check_run_test.go index 5425e60..754040b 100644 --- a/githubevents/events_check_run_test.go +++ b/githubevents/events_check_run_test.go @@ -943,7 +943,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -951,7 +951,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -983,7 +983,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -991,7 +991,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1027,7 +1027,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1035,7 +1035,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1071,7 +1071,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1079,7 +1079,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1116,7 +1116,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1124,7 +1124,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1160,7 +1160,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1168,7 +1168,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1204,7 +1204,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1212,7 +1212,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1249,7 +1249,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1257,7 +1257,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1293,7 +1293,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1301,7 +1301,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1337,7 +1337,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1345,7 +1345,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1382,7 +1382,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1390,7 +1390,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1426,7 +1426,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1434,7 +1434,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1470,7 +1470,7 @@ func TestCheckRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1478,7 +1478,7 @@ func TestCheckRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_check_suite_test.go b/githubevents/events_check_suite_test.go index 1d5ccf4..e9c8c89 100644 --- a/githubevents/events_check_suite_test.go +++ b/githubevents/events_check_suite_test.go @@ -756,7 +756,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestCheckSuiteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestCheckSuiteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_commit_comment_test.go b/githubevents/events_commit_comment_test.go index c685ea2..b3133f7 100644 --- a/githubevents/events_commit_comment_test.go +++ b/githubevents/events_commit_comment_test.go @@ -382,7 +382,7 @@ func TestCommitCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -390,7 +390,7 @@ func TestCommitCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -422,7 +422,7 @@ func TestCommitCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -430,7 +430,7 @@ func TestCommitCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -466,7 +466,7 @@ func TestCommitCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -474,7 +474,7 @@ func TestCommitCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -510,7 +510,7 @@ func TestCommitCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -518,7 +518,7 @@ func TestCommitCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_create_test.go b/githubevents/events_create_test.go index 2d7a212..309f258 100644 --- a/githubevents/events_create_test.go +++ b/githubevents/events_create_test.go @@ -193,7 +193,7 @@ func TestCreateEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestCreateEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_delete_test.go b/githubevents/events_delete_test.go index 6caf66e..15b6088 100644 --- a/githubevents/events_delete_test.go +++ b/githubevents/events_delete_test.go @@ -193,7 +193,7 @@ func TestDeleteEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestDeleteEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_deploy_key_test.go b/githubevents/events_deploy_key_test.go index 0e040ee..149c380 100644 --- a/githubevents/events_deploy_key_test.go +++ b/githubevents/events_deploy_key_test.go @@ -569,7 +569,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestDeployKeyEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestDeployKeyEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_deployment_status_test.go b/githubevents/events_deployment_status_test.go index fce3fd0..cd78591 100644 --- a/githubevents/events_deployment_status_test.go +++ b/githubevents/events_deployment_status_test.go @@ -193,7 +193,7 @@ func TestDeploymentStatusEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestDeploymentStatusEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_deployment_test.go b/githubevents/events_deployment_test.go index 25902a0..71142c5 100644 --- a/githubevents/events_deployment_test.go +++ b/githubevents/events_deployment_test.go @@ -193,7 +193,7 @@ func TestDeploymentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestDeploymentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_discussion_test.go b/githubevents/events_discussion_test.go index 3eb87a3..e6e57a8 100644 --- a/githubevents/events_discussion_test.go +++ b/githubevents/events_discussion_test.go @@ -2626,7 +2626,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2634,7 +2634,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2666,7 +2666,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2674,7 +2674,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2710,7 +2710,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2718,7 +2718,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2754,7 +2754,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2762,7 +2762,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2799,7 +2799,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2807,7 +2807,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2843,7 +2843,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2851,7 +2851,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2887,7 +2887,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2895,7 +2895,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2932,7 +2932,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2940,7 +2940,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2976,7 +2976,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2984,7 +2984,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3020,7 +3020,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3028,7 +3028,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3065,7 +3065,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3073,7 +3073,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3109,7 +3109,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3117,7 +3117,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3153,7 +3153,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3161,7 +3161,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3198,7 +3198,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3206,7 +3206,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3242,7 +3242,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3250,7 +3250,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3286,7 +3286,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3294,7 +3294,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3331,7 +3331,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3339,7 +3339,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3375,7 +3375,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3383,7 +3383,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3419,7 +3419,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3427,7 +3427,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3464,7 +3464,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3472,7 +3472,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3508,7 +3508,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3516,7 +3516,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3552,7 +3552,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3560,7 +3560,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3597,7 +3597,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3605,7 +3605,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3641,7 +3641,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3649,7 +3649,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3685,7 +3685,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3693,7 +3693,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3730,7 +3730,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3738,7 +3738,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3774,7 +3774,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3782,7 +3782,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3818,7 +3818,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3826,7 +3826,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3863,7 +3863,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3871,7 +3871,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3907,7 +3907,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3915,7 +3915,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3951,7 +3951,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3959,7 +3959,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3996,7 +3996,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4004,7 +4004,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4040,7 +4040,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4048,7 +4048,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4084,7 +4084,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4092,7 +4092,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4129,7 +4129,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4137,7 +4137,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4173,7 +4173,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4181,7 +4181,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4217,7 +4217,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4225,7 +4225,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4262,7 +4262,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4270,7 +4270,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4306,7 +4306,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4314,7 +4314,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4350,7 +4350,7 @@ func TestDiscussionEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4358,7 +4358,7 @@ func TestDiscussionEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_fork_test.go b/githubevents/events_fork_test.go index 8182c1c..b0cbb71 100644 --- a/githubevents/events_fork_test.go +++ b/githubevents/events_fork_test.go @@ -193,7 +193,7 @@ func TestForkEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestForkEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_github_app_authorization_test.go b/githubevents/events_github_app_authorization_test.go index da768a4..bd8d677 100644 --- a/githubevents/events_github_app_authorization_test.go +++ b/githubevents/events_github_app_authorization_test.go @@ -382,7 +382,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -390,7 +390,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -422,7 +422,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -430,7 +430,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -466,7 +466,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -474,7 +474,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -510,7 +510,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -518,7 +518,7 @@ func TestGitHubAppAuthorizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_gollum_test.go b/githubevents/events_gollum_test.go index b71b0a4..a0e67d0 100644 --- a/githubevents/events_gollum_test.go +++ b/githubevents/events_gollum_test.go @@ -193,7 +193,7 @@ func TestGollumEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestGollumEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_installation_repositories_test.go b/githubevents/events_installation_repositories_test.go index ba07630..0d87d06 100644 --- a/githubevents/events_installation_repositories_test.go +++ b/githubevents/events_installation_repositories_test.go @@ -569,7 +569,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestInstallationRepositoriesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_installation_test.go b/githubevents/events_installation_test.go index 0d676dc..daaa1e7 100644 --- a/githubevents/events_installation_test.go +++ b/githubevents/events_installation_test.go @@ -1130,7 +1130,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestInstallationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestInstallationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_issue_comment_test.go b/githubevents/events_issue_comment_test.go index 6cefb97..b69bcad 100644 --- a/githubevents/events_issue_comment_test.go +++ b/githubevents/events_issue_comment_test.go @@ -756,7 +756,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestIssueCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestIssueCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_issues_test.go b/githubevents/events_issues_test.go index 554720e..6c3361f 100644 --- a/githubevents/events_issues_test.go +++ b/githubevents/events_issues_test.go @@ -3187,7 +3187,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3195,7 +3195,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3227,7 +3227,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3235,7 +3235,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3271,7 +3271,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3279,7 +3279,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3315,7 +3315,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3323,7 +3323,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3360,7 +3360,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3368,7 +3368,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3404,7 +3404,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3412,7 +3412,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3448,7 +3448,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3456,7 +3456,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3493,7 +3493,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3501,7 +3501,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3537,7 +3537,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3545,7 +3545,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3581,7 +3581,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3589,7 +3589,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3626,7 +3626,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3634,7 +3634,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3670,7 +3670,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3678,7 +3678,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3714,7 +3714,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3722,7 +3722,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3759,7 +3759,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3767,7 +3767,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3803,7 +3803,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3811,7 +3811,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3847,7 +3847,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3855,7 +3855,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3892,7 +3892,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3900,7 +3900,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3936,7 +3936,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3944,7 +3944,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3980,7 +3980,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3988,7 +3988,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4025,7 +4025,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4033,7 +4033,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4069,7 +4069,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4077,7 +4077,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4113,7 +4113,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4121,7 +4121,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4158,7 +4158,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4166,7 +4166,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4202,7 +4202,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4210,7 +4210,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4246,7 +4246,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4254,7 +4254,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4291,7 +4291,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4299,7 +4299,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4335,7 +4335,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4343,7 +4343,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4379,7 +4379,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4387,7 +4387,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4424,7 +4424,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4432,7 +4432,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4468,7 +4468,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4476,7 +4476,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4512,7 +4512,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4520,7 +4520,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4557,7 +4557,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4565,7 +4565,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4601,7 +4601,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4609,7 +4609,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4645,7 +4645,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4653,7 +4653,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4690,7 +4690,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4698,7 +4698,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4734,7 +4734,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4742,7 +4742,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4778,7 +4778,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4786,7 +4786,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4823,7 +4823,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4831,7 +4831,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4867,7 +4867,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4875,7 +4875,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4911,7 +4911,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4919,7 +4919,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4956,7 +4956,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4964,7 +4964,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5000,7 +5000,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5008,7 +5008,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5044,7 +5044,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5052,7 +5052,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5089,7 +5089,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5097,7 +5097,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5133,7 +5133,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5141,7 +5141,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5177,7 +5177,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5185,7 +5185,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5222,7 +5222,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5230,7 +5230,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5266,7 +5266,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5274,7 +5274,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5310,7 +5310,7 @@ func TestIssuesEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5318,7 +5318,7 @@ func TestIssuesEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_label_test.go b/githubevents/events_label_test.go index e624cbf..6b42755 100644 --- a/githubevents/events_label_test.go +++ b/githubevents/events_label_test.go @@ -756,7 +756,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestLabelEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestLabelEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_marketplace_purchase_test.go b/githubevents/events_marketplace_purchase_test.go index 1dd70a2..0d4971e 100644 --- a/githubevents/events_marketplace_purchase_test.go +++ b/githubevents/events_marketplace_purchase_test.go @@ -1130,7 +1130,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestMarketplacePurchaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_member_test.go b/githubevents/events_member_test.go index 2d9b6bd..bc78229 100644 --- a/githubevents/events_member_test.go +++ b/githubevents/events_member_test.go @@ -756,7 +756,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestMemberEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestMemberEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_membership_test.go b/githubevents/events_membership_test.go index 20b3e56..38fd7df 100644 --- a/githubevents/events_membership_test.go +++ b/githubevents/events_membership_test.go @@ -569,7 +569,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestMembershipEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestMembershipEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_meta_test.go b/githubevents/events_meta_test.go index 04ecd3e..86c11cb 100644 --- a/githubevents/events_meta_test.go +++ b/githubevents/events_meta_test.go @@ -193,7 +193,7 @@ func TestMetaEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestMetaEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_milestone_test.go b/githubevents/events_milestone_test.go index 27aebad..869fec8 100644 --- a/githubevents/events_milestone_test.go +++ b/githubevents/events_milestone_test.go @@ -1130,7 +1130,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestMilestoneEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestMilestoneEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_org_block_test.go b/githubevents/events_org_block_test.go index d96dd0f..2b9d9d2 100644 --- a/githubevents/events_org_block_test.go +++ b/githubevents/events_org_block_test.go @@ -569,7 +569,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestOrgBlockEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestOrgBlockEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_organization_test.go b/githubevents/events_organization_test.go index 44ab2ff..7b36222 100644 --- a/githubevents/events_organization_test.go +++ b/githubevents/events_organization_test.go @@ -1130,7 +1130,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestOrganizationEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestOrganizationEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_package_test.go b/githubevents/events_package_test.go index 444ca9d..b981e79 100644 --- a/githubevents/events_package_test.go +++ b/githubevents/events_package_test.go @@ -569,7 +569,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestPackageEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestPackageEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_page_build_test.go b/githubevents/events_page_build_test.go index d5a4977..51afaa6 100644 --- a/githubevents/events_page_build_test.go +++ b/githubevents/events_page_build_test.go @@ -193,7 +193,7 @@ func TestPageBuildEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestPageBuildEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_ping_test.go b/githubevents/events_ping_test.go index ed0edbc..68629d1 100644 --- a/githubevents/events_ping_test.go +++ b/githubevents/events_ping_test.go @@ -193,7 +193,7 @@ func TestPingEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestPingEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_project_card_test.go b/githubevents/events_project_card_test.go index a34cbde..c34d6f0 100644 --- a/githubevents/events_project_card_test.go +++ b/githubevents/events_project_card_test.go @@ -1130,7 +1130,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestProjectCardEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestProjectCardEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_project_column_test.go b/githubevents/events_project_column_test.go index 0ec1241..52b03fb 100644 --- a/githubevents/events_project_column_test.go +++ b/githubevents/events_project_column_test.go @@ -943,7 +943,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -951,7 +951,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -983,7 +983,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -991,7 +991,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1027,7 +1027,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1035,7 +1035,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1071,7 +1071,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1079,7 +1079,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1116,7 +1116,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1124,7 +1124,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1160,7 +1160,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1168,7 +1168,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1204,7 +1204,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1212,7 +1212,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1249,7 +1249,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1257,7 +1257,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1293,7 +1293,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1301,7 +1301,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1337,7 +1337,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1345,7 +1345,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1382,7 +1382,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1390,7 +1390,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1426,7 +1426,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1434,7 +1434,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1470,7 +1470,7 @@ func TestProjectColumnEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1478,7 +1478,7 @@ func TestProjectColumnEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_project_test.go b/githubevents/events_project_test.go index da3639a..305ca55 100644 --- a/githubevents/events_project_test.go +++ b/githubevents/events_project_test.go @@ -1130,7 +1130,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestProjectEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestProjectEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_public_test.go b/githubevents/events_public_test.go index 1e4805f..8395705 100644 --- a/githubevents/events_public_test.go +++ b/githubevents/events_public_test.go @@ -193,7 +193,7 @@ func TestPublicEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestPublicEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_pull_request_review_comment_test.go b/githubevents/events_pull_request_review_comment_test.go index 03c0973..812abea 100644 --- a/githubevents/events_pull_request_review_comment_test.go +++ b/githubevents/events_pull_request_review_comment_test.go @@ -756,7 +756,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestPullRequestReviewCommentEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_pull_request_review_test.go b/githubevents/events_pull_request_review_test.go index 4d095e7..e28e051 100644 --- a/githubevents/events_pull_request_review_test.go +++ b/githubevents/events_pull_request_review_test.go @@ -756,7 +756,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestPullRequestReviewEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestPullRequestReviewEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_pull_request_test.go b/githubevents/events_pull_request_test.go index 655a768..1f5807c 100644 --- a/githubevents/events_pull_request_test.go +++ b/githubevents/events_pull_request_test.go @@ -3374,7 +3374,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3382,7 +3382,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3414,7 +3414,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3422,7 +3422,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3458,7 +3458,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3466,7 +3466,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3502,7 +3502,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3510,7 +3510,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3547,7 +3547,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3555,7 +3555,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3591,7 +3591,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3599,7 +3599,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3635,7 +3635,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3643,7 +3643,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3680,7 +3680,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3688,7 +3688,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3724,7 +3724,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3732,7 +3732,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3768,7 +3768,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3776,7 +3776,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3813,7 +3813,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3821,7 +3821,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3857,7 +3857,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3865,7 +3865,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3901,7 +3901,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3909,7 +3909,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3946,7 +3946,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3954,7 +3954,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3990,7 +3990,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3998,7 +3998,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4034,7 +4034,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4042,7 +4042,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4079,7 +4079,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4087,7 +4087,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4123,7 +4123,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4131,7 +4131,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4167,7 +4167,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4175,7 +4175,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4212,7 +4212,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4220,7 +4220,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4256,7 +4256,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4264,7 +4264,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4300,7 +4300,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4308,7 +4308,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4345,7 +4345,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4353,7 +4353,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4389,7 +4389,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4397,7 +4397,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4433,7 +4433,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4441,7 +4441,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4478,7 +4478,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4486,7 +4486,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4522,7 +4522,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4530,7 +4530,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4566,7 +4566,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4574,7 +4574,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4611,7 +4611,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4619,7 +4619,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4655,7 +4655,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4663,7 +4663,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4699,7 +4699,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4707,7 +4707,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4744,7 +4744,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4752,7 +4752,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4788,7 +4788,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4796,7 +4796,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4832,7 +4832,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4840,7 +4840,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4877,7 +4877,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4885,7 +4885,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4921,7 +4921,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4929,7 +4929,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -4965,7 +4965,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -4973,7 +4973,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5010,7 +5010,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5018,7 +5018,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5054,7 +5054,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5062,7 +5062,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5098,7 +5098,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5106,7 +5106,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5143,7 +5143,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5151,7 +5151,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5187,7 +5187,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5195,7 +5195,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5231,7 +5231,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5239,7 +5239,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5276,7 +5276,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5284,7 +5284,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5320,7 +5320,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5328,7 +5328,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5364,7 +5364,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5372,7 +5372,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5409,7 +5409,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5417,7 +5417,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5453,7 +5453,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5461,7 +5461,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5497,7 +5497,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5505,7 +5505,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5542,7 +5542,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5550,7 +5550,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5586,7 +5586,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5594,7 +5594,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -5630,7 +5630,7 @@ func TestPullRequestEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -5638,7 +5638,7 @@ func TestPullRequestEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_push_test.go b/githubevents/events_push_test.go index c6a74c4..9264fa8 100644 --- a/githubevents/events_push_test.go +++ b/githubevents/events_push_test.go @@ -193,7 +193,7 @@ func TestPushEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestPushEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_release_test.go b/githubevents/events_release_test.go index d231c6f..b9d63b1 100644 --- a/githubevents/events_release_test.go +++ b/githubevents/events_release_test.go @@ -1504,7 +1504,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1512,7 +1512,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1544,7 +1544,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1552,7 +1552,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1588,7 +1588,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1596,7 +1596,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1632,7 +1632,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1640,7 +1640,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1677,7 +1677,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1685,7 +1685,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1721,7 +1721,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1729,7 +1729,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1765,7 +1765,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1773,7 +1773,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1810,7 +1810,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1818,7 +1818,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1854,7 +1854,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1862,7 +1862,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1898,7 +1898,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1906,7 +1906,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1943,7 +1943,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1951,7 +1951,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1987,7 +1987,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1995,7 +1995,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2031,7 +2031,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2039,7 +2039,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2076,7 +2076,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2084,7 +2084,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2120,7 +2120,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2128,7 +2128,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2164,7 +2164,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2172,7 +2172,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2209,7 +2209,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2217,7 +2217,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2253,7 +2253,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2261,7 +2261,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2297,7 +2297,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2305,7 +2305,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2342,7 +2342,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2350,7 +2350,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2386,7 +2386,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2394,7 +2394,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2430,7 +2430,7 @@ func TestReleaseEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2438,7 +2438,7 @@ func TestReleaseEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_repository_dispatch_test.go b/githubevents/events_repository_dispatch_test.go index 4ec8ba1..d0bfb9e 100644 --- a/githubevents/events_repository_dispatch_test.go +++ b/githubevents/events_repository_dispatch_test.go @@ -193,7 +193,7 @@ func TestRepositoryDispatchEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestRepositoryDispatchEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_repository_test.go b/githubevents/events_repository_test.go index c73e931..1b34d05 100644 --- a/githubevents/events_repository_test.go +++ b/githubevents/events_repository_test.go @@ -1878,7 +1878,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1886,7 +1886,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1918,7 +1918,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1926,7 +1926,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1962,7 +1962,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1970,7 +1970,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2006,7 +2006,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2014,7 +2014,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2051,7 +2051,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2059,7 +2059,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2095,7 +2095,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2103,7 +2103,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2139,7 +2139,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2147,7 +2147,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2184,7 +2184,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2192,7 +2192,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2228,7 +2228,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2236,7 +2236,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2272,7 +2272,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2280,7 +2280,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2317,7 +2317,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2325,7 +2325,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2361,7 +2361,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2369,7 +2369,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2405,7 +2405,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2413,7 +2413,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2450,7 +2450,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2458,7 +2458,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2494,7 +2494,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2502,7 +2502,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2538,7 +2538,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2546,7 +2546,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2583,7 +2583,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2591,7 +2591,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2627,7 +2627,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2635,7 +2635,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2671,7 +2671,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2679,7 +2679,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2716,7 +2716,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2724,7 +2724,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2760,7 +2760,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2768,7 +2768,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2804,7 +2804,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2812,7 +2812,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2849,7 +2849,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2857,7 +2857,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2893,7 +2893,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2901,7 +2901,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2937,7 +2937,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2945,7 +2945,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -2982,7 +2982,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -2990,7 +2990,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3026,7 +3026,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3034,7 +3034,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -3070,7 +3070,7 @@ func TestRepositoryEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -3078,7 +3078,7 @@ func TestRepositoryEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_repository_vulnerability_alert_test.go b/githubevents/events_repository_vulnerability_alert_test.go index 431accd..b37ae94 100644 --- a/githubevents/events_repository_vulnerability_alert_test.go +++ b/githubevents/events_repository_vulnerability_alert_test.go @@ -756,7 +756,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestRepositoryVulnerabilityAlertEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_star_test.go b/githubevents/events_star_test.go index a368607..cf6a4c7 100644 --- a/githubevents/events_star_test.go +++ b/githubevents/events_star_test.go @@ -569,7 +569,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestStarEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestStarEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_status_test.go b/githubevents/events_status_test.go index 9ea009e..5223c3a 100644 --- a/githubevents/events_status_test.go +++ b/githubevents/events_status_test.go @@ -193,7 +193,7 @@ func TestStatusEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestStatusEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_team_add_test.go b/githubevents/events_team_add_test.go index 38ffd79..4afeedb 100644 --- a/githubevents/events_team_add_test.go +++ b/githubevents/events_team_add_test.go @@ -193,7 +193,7 @@ func TestTeamAddEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestTeamAddEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_team_test.go b/githubevents/events_team_test.go index 0ecf28f..a0c5a2e 100644 --- a/githubevents/events_team_test.go +++ b/githubevents/events_team_test.go @@ -1130,7 +1130,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1138,7 +1138,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1170,7 +1170,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1178,7 +1178,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1214,7 +1214,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1222,7 +1222,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1258,7 +1258,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1266,7 +1266,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1303,7 +1303,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1311,7 +1311,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1347,7 +1347,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1355,7 +1355,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1391,7 +1391,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1399,7 +1399,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1436,7 +1436,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1444,7 +1444,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1480,7 +1480,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1488,7 +1488,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1524,7 +1524,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1532,7 +1532,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1569,7 +1569,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1577,7 +1577,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1613,7 +1613,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1621,7 +1621,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1657,7 +1657,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1665,7 +1665,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1702,7 +1702,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1710,7 +1710,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1746,7 +1746,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1754,7 +1754,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1790,7 +1790,7 @@ func TestTeamEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1798,7 +1798,7 @@ func TestTeamEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_watch_test.go b/githubevents/events_watch_test.go index d1d2f46..4b5ec65 100644 --- a/githubevents/events_watch_test.go +++ b/githubevents/events_watch_test.go @@ -193,7 +193,7 @@ func TestWatchEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestWatchEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_workflow_dispatch_test.go b/githubevents/events_workflow_dispatch_test.go index 42c4f27..d7edc18 100644 --- a/githubevents/events_workflow_dispatch_test.go +++ b/githubevents/events_workflow_dispatch_test.go @@ -193,7 +193,7 @@ func TestWorkflowDispatchEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -201,7 +201,7 @@ func TestWorkflowDispatchEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_workflow_job_test.go b/githubevents/events_workflow_job_test.go index 790ab28..fc560d3 100644 --- a/githubevents/events_workflow_job_test.go +++ b/githubevents/events_workflow_job_test.go @@ -756,7 +756,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -764,7 +764,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -796,7 +796,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -804,7 +804,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -840,7 +840,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -848,7 +848,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -884,7 +884,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -892,7 +892,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -929,7 +929,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -937,7 +937,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -973,7 +973,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -981,7 +981,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1017,7 +1017,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1025,7 +1025,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1062,7 +1062,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1070,7 +1070,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1106,7 +1106,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1114,7 +1114,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -1150,7 +1150,7 @@ func TestWorkflowJobEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -1158,7 +1158,7 @@ func TestWorkflowJobEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/events_workflow_run_test.go b/githubevents/events_workflow_run_test.go index 8f25e56..c5d3a43 100644 --- a/githubevents/events_workflow_run_test.go +++ b/githubevents/events_workflow_run_test.go @@ -569,7 +569,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -577,7 +577,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -609,7 +609,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -617,7 +617,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -653,7 +653,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -661,7 +661,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -697,7 +697,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -705,7 +705,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -742,7 +742,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -750,7 +750,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -786,7 +786,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -794,7 +794,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, @@ -830,7 +830,7 @@ func TestWorkflowRunEvent(t *testing.T) { WebhookSecret: "fake", onBeforeAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onBeforeAny called") return nil }, @@ -838,7 +838,7 @@ func TestWorkflowRunEvent(t *testing.T) { }, onAfterAny: map[string][]EventHandleFunc{ EventAnyAction: { - func(deliveryID string, eventName string, event interface{}) error { + func(deliveryID string, eventName string, event any) error { t.Log("onAfterAny called") return nil }, diff --git a/githubevents/main.go b/githubevents/main.go deleted file mode 100644 index 323deed..0000000 --- a/githubevents/main.go +++ /dev/null @@ -1 +0,0 @@ -package githubevents diff --git a/go.mod b/go.mod index d776dcf..087e325 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cbrgm/githubevents -go 1.18 +go 1.19 require ( github.com/google/go-github/v47 v47.1.0