Skip to content

Commit ac5148c

Browse files
committed
feat: refactor payload validation in GenerateCommentAction and WebhookService
1 parent a891390 commit ac5148c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Services/WebhookService.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public function validatePayload(array $payload): ?JsonResponse
6868
return null;
6969
}
7070

71+
/**
72+
* @param array<string, mixed> $payload
73+
*
74+
* @return null|JsonResponse
75+
*/
7176
public function validatePayloadForComment(array $payload): ?JsonResponse
7277
{
7378
if (!$this->isActionPresent($payload)) {

0 commit comments

Comments
 (0)