From d0789a6730ec8541881848d45f22110ce6014432 Mon Sep 17 00:00:00 2001 From: lguichard Date: Thu, 12 Dec 2024 22:14:41 +0100 Subject: [PATCH] Fix: Event format with the Github provider --- src/Providers/GithubProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Providers/GithubProvider.php b/src/Providers/GithubProvider.php index f1b03fe..75154d2 100644 --- a/src/Providers/GithubProvider.php +++ b/src/Providers/GithubProvider.php @@ -26,6 +26,9 @@ public function verify(Request $request): bool */ public function getEvent(Request $request): string { - return implode('_', [$request->header('X-GitHub-Event'), $request->input('action')]); + return implode('_', array_filter([ + $request->header('X-GitHub-Event'), + $request->input('action') + ])); } }