Skip to content

Commit

Permalink
Locate issue body on response
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktu12 committed Nov 8, 2018
1 parent 6502a28 commit 9b5f90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.env
*~
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 9b5f90e

Please sign in to comment.