Skip to content

Commit 424de43

Browse files
committed
fix: update condition to check field type for status comments
1 parent 7b6624c commit 424de43

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
@@ -95,8 +95,8 @@ protected function isStatusCommentEnabled(array $payload): bool
9595
{
9696
$fieldType = $payload['changes']['field_value']['field_type'] ?? '';
9797

98-
if ((string) $fieldType !== 'Status'
99-
&& !config('github-project.enable_status_comment')
98+
if ((string) $fieldType === 'Status'
99+
&& !z('github-project.enable_status_comment')
100100
) {
101101
return false;
102102
}

0 commit comments

Comments
 (0)