From 031f79dcebac0a74032ee25b455afc42db073fd7 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 15:49:44 -0400 Subject: [PATCH] handle when event data is missing --- .github/workflows/src/app/action-event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index 742b7341..8a0bf907 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -16,7 +16,8 @@ class ActionsEvent { return } console.log(this.data) - this.event = this.data.eventData + // I guess some event files don't have EventData + this.event = this.data.eventData || this.data this.pull = this.data.pull_pequest this.requestedReviwer = this.data.requestedReviewer this.name = this.event.action -- knotmirror 0.0.1