Skip to content

Commit 7b6624c

Browse files
committed
fix: correct condition to check field type in status comment
1 parent d96586a commit 7b6624c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Services/WebhookService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ public function validatePayload(array $payload): ?JsonResponse
9393
*/
9494
protected function isStatusCommentEnabled(array $payload): bool
9595
{
96-
if ((string) $payload['changes']['field_value']['field_name'] === 'Status'
96+
$fieldType = $payload['changes']['field_value']['field_type'] ?? '';
97+
98+
if ((string) $fieldType !== 'Status'
9799
&& !config('github-project.enable_status_comment')
98100
) {
99101
return false;

0 commit comments

Comments
 (0)