From 9b5f90e474939dfc64c5e91a1437e0c14a7896b0 Mon Sep 17 00:00:00 2001 From: nicktu12 Date: Thu, 8 Nov 2018 15:59:53 -0700 Subject: [PATCH] Locate issue body on response --- .gitignore | 1 + index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 37d7e73..1a3241f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules .env +*~ diff --git a/index.js b/index.js index f5f16cd..2f53684 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,7 @@ module.exports = app => { app.log('Yay, the app was loaded!') app.on('issues.opened', async context => { + const body = context.payload.issue.body; const issueComment = context.issue({ body: 'Thanks for opening this issue!' }) return context.github.issues.createComment(issueComment) })