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;