File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ protected function hasFieldTemplate(array $payload): bool
5050 {
5151 $ fieldType = $ payload ['changes ' ]['field_value ' ]['field_type ' ] ?? '' ;
5252
53- return view ()->exists ('github-project::md.fields . ' .$ fieldType );
53+ return view ()->exists ('github-project::md.field_types . ' .$ fieldType );
5454 }
5555
5656 protected function createErrorResponse (string $ message , int $ statusCode = 400 ): JsonResponse
@@ -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 ;
You can’t perform that action at this time.
0 commit comments