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 d96586a commit 7b6624cCopy full SHA for 7b6624c
src/Services/WebhookService.php
@@ -93,7 +93,9 @@ public function validatePayload(array $payload): ?JsonResponse
93
*/
94
protected function isStatusCommentEnabled(array $payload): bool
95
{
96
- if ((string) $payload['changes']['field_value']['field_name'] === 'Status'
+ $fieldType = $payload['changes']['field_value']['field_type'] ?? '';
97
+
98
+ if ((string) $fieldType !== 'Status'
99
&& !config('github-project.enable_status_comment')
100
) {
101
return false;
0 commit comments