From bd91ac64d1dccc0880184e429a035beb902a7ef7 Mon Sep 17 00:00:00 2001 From: KieSun Date: Tue, 23 Mar 2021 11:33:40 +0800 Subject: [PATCH] chore: action --- script/comment.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/comment.js b/script/comment.js index 84f0838..dda9298 100644 --- a/script/comment.js +++ b/script/comment.js @@ -1,6 +1,9 @@ const axios = require("axios"); const { - event: { comment }, + event: { + comment, + issue: { number }, + }, } = JSON.parse(process.env.GITHUB_CONTEXT); const { body, @@ -8,7 +11,6 @@ const { html_url, id, user: { avatar_url, login }, - issue: { number }, } = comment; const host = process.env.COMMENTHOST;