We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d70d72 commit c4a5118Copy full SHA for c4a5118
src/Services/WebhookService.php
@@ -87,12 +87,8 @@ protected function isStatusCommentEnabled(array $payload): bool
87
{
88
$fieldType = $payload['changes']['field_value']['field_type'] ?? '';
89
90
- if ((string) $fieldType === 'Status'
91
- && !config('github-project.enable_status_comment')
92
- ) {
93
- return false;
94
- }
95
-
96
- return true;
+ return !((string) $fieldType === 'Status'
+ && (bool) config('github-project.enable_status_comment') === false
+ );
97
}
98
0 commit comments