const axios = require("axios"); const { event: { comment }, } = JSON.parse(process.env.GITHUB_CONTEXT); const { body, updated_at, html_url, id, user: { avatar_url, login }, issue: { number }, } = comment; const host = process.env.COMMENTHOST; axios.post(host, { issueId: number, commentId: id, htmlUrl: html_url, userName: login, avatarUrl: avatar_url, content: body, updatedAt: updated_at, });