Skip to content

Commit ccfc74f

Browse files
committed
fix: correct field type check in isStatusCommentEnabled method
1 parent c4a5118 commit ccfc74f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/WebhookService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public function validatePayload(array $payload): ?JsonResponse
8585
*/
8686
protected function isStatusCommentEnabled(array $payload): bool
8787
{
88-
$fieldType = $payload['changes']['field_value']['field_type'] ?? '';
88+
$fieldType = $payload['changes']['field_value']['field_name'] ?? '';
8989

9090
return !((string) $fieldType === 'Status'
91-
&& (bool) config('github-project.enable_status_comment') === false
91+
&& !config('github-project.enable_status_comment')
9292
);
9393
}
9494
}

0 commit comments

Comments
 (0)