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) })